Error handling when attempting chat on closed connection.
This commit is contained in:
1 parent
667412e6ae
commit
2e63c0f305
1 file changed
+5
@@ -1437,6 +1437,11 @@ function handleInput() {
|
|||||||
me = false;
|
me = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!serverConnection || !serverConnection.socket) {
|
||||||
|
displayError("Not connected.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let username = getUsername();
|
let username = getUsername();
|
||||||
if(!username) {
|
if(!username) {
|
||||||
displayError("Sorry, you're anonymous, you cannot chat");
|
displayError("Sorry, you're anonymous, you cannot chat");
|
||||||
|
|||||||
Reference in new issue
Block a user