diff options
author | Ferass El Hafidi <fun@andrewyu.org> | 2024-03-24 12:51:03 +0000 |
---|---|---|
committer | Ferass El Hafidi <fun@andrewyu.org> | 2024-03-24 12:51:03 +0000 |
commit | 4d64ff8db01d0fd26aed13c6413fc76f127a4af6 (patch) | |
tree | 07f6ea2f8907000d545548b2efb08485a4d01277 | |
parent | ae155f8f28028d2fa167155834ead385781ee0fb (diff) | |
download | gamja-4d64ff8db01d0fd26aed13c6413fc76f127a4af6.tar.gz gamja-4d64ff8db01d0fd26aed13c6413fc76f127a4af6.zip |
lib/client: 'fix' error reporting
-rw-r--r-- | lib/client.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/client.js b/lib/client.js index ab53736..e74add3 100644 --- a/lib/client.js +++ b/lib/client.js @@ -184,10 +184,6 @@ export default class Client extends EventTarget { this.ws.addEventListener("close", (event) => { console.log("Connection closed (code: " + event.code + ")"); - if (event.code !== NORMAL_CLOSURE && event.code !== GOING_AWAY) { - this.dispatchError(new Error("Connection error")); - } - this.ws = null; this.setStatus(Client.Status.DISCONNECTED); this.nick = null; |