We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9427216 commit bc2ac57Copy full SHA for bc2ac57
msctl
@@ -1822,7 +1822,7 @@ querySendPacket() {
1822
print map { pack ("C", hex($_)) } ($packet =~ /(..)/g);
1823
' -- -packet="$PACKET" >>"$WORLD_DIR/query.in"
1824
# Give the Query server a moment to respond.
1825
- sleep 1
+ timeout 1 sh -c "while [ ! -s '$WORLD_DIR/query.out' ]; do :; done"
1826
# Unpack the response packet from the query.out buffer file. There are a
1827
# variable amount of null bytes at the start of the response packet, so
1828
# find the start of the response by searching for the packet type and ID.
0 commit comments