Skip to content
Snippets Groups Projects
Commit 5c9c5518 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't just drop out the bottom of the function on timeout.

If we don't get one of the commands we're waiting for, close the
socket and exit instead of returning with the appearance of having
received one.
parent 906ee60f
No related branches found
No related tags found
No related merge requests found
......@@ -664,6 +664,9 @@ function wait_for(commands) {
// Don't handle user input at this point!
// screen.update();
}
alert("Connection timed out");
sock.close();
clean_exit();
}
function in_a_channel() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment