summary refs log tree commit diff
path: root/gateway/src/events/Message.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-22 21:30:19 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-22 21:30:19 +1000
commite55ad7ee3d4e6e2f4195501ea80cecf23fd42bc2 (patch)
tree2550635b91ac341e922215860fc750dca466688f /gateway/src/events/Message.ts
parentawait the dm channel handler (diff)
downloadserver-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.ts2
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);
 	}
 }