summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/events/Message.ts2
-rw-r--r--gateway/src/util/Send.ts2
2 files changed, 2 insertions, 2 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);
 	}
 }
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts
index c8627b03..c4202b21 100644
--- a/gateway/src/util/Send.ts
+++ b/gateway/src/util/Send.ts
@@ -6,7 +6,7 @@ try {
 }
 import { Payload, WebSocket } from "@fosscord/gateway";
 
-export async function Send(socket: WebSocket, data: Payload) {
+export function Send(socket: WebSocket, data: Payload) {
 	let buffer: Buffer | string;
 	if (socket.encoding === "etf") buffer = erlpack.pack(data);
 	// TODO: encode circular object