diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 21:30:19 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-22 21:30:19 +1000 |
commit | e55ad7ee3d4e6e2f4195501ea80cecf23fd42bc2 (patch) | |
tree | 2550635b91ac341e922215860fc750dca466688f /gateway/src/events/Message.ts | |
parent | await the dm channel handler (diff) | |
download | server-e55ad7ee3d4e6e2f4195501ea80cecf23fd42bc2.tar.xz |
Remove unnessesary async and close on error in gateway
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); } } |