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 22:21:30 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-22 22:21:30 +1000
commite66dc796b7a1b47e43427bb90f6ce62d5e4fd5ac (patch)
tree2bc1a53360ce84ffd37bb75fbe7a33f0e3c98718 /gateway/src/events/Message.ts
parentRevert "Remove unnessesary async and close on error in gateway" (diff)
downloadserver-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.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);
 	}
 }