ws fix
This commit is contained in:
parent
f37a930884
commit
6a99c806a5
2 changed files with 2 additions and 0 deletions
|
@ -194,6 +194,7 @@ class Localuser {
|
|||
this.handleEvent(temp);
|
||||
});
|
||||
this.ws.addEventListener("close", event => {
|
||||
this.ws = undefined;
|
||||
console.log("WebSocket closed with code " + event.code);
|
||||
this.unload();
|
||||
document.getElementById("loading").classList.remove("doneloading");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue