Commit 2e63c0f3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Error handling when attempting chat on closed connection.

parent 667412e6
......@@ -1437,6 +1437,11 @@ function handleInput() {
me = false;
}
if(!serverConnection || !serverConnection.socket) {
displayError("Not connected.");
return;
}
let username = getUsername();
if(!username) {
displayError("Sorry, you're anonymous, you cannot chat");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment