diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 22:21:30 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 22:21:30 +1000 |
commit | e66dc796b7a1b47e43427bb90f6ce62d5e4fd5ac (patch) | |
tree | 2bc1a53360ce84ffd37bb75fbe7a33f0e3c98718 /gateway/src/events/Message.ts | |
parent | Revert "Remove unnessesary async and close on error in gateway" (diff) | |
download | server-e66dc796b7a1b47e43427bb90f6ce62d5e4fd5ac.tar.xz |
Revert "Revert "Remove unnessesary async and close on error in gateway""
This reverts commit cecd4adab086b9f481fdb13ee8286aff9a497ebe.
Diffstat (limited to 'gateway/src/events/Message.ts')
-rw-r--r-- | gateway/src/events/Message.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts index acc39bb9..b675afcd 100644 --- a/gateway/src/events/Message.ts +++ b/gateway/src/events/Message.ts @@ -41,7 +41,7 @@ export async function Message(this: WebSocket, buffer: WS.Data) { return await OPCodeHandler.call(this, data); } catch (error) { console.error(error); - if (!this.CLOSED && this.CLOSING) + // if (!this.CLOSED && this.CLOSING) return this.close(CLOSECODES.Unknown_error); } } |