Skip to content
Snippets Groups Projects
Commit 4f1bda1d 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 edc9d6c4
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -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.
Please register or to comment