Revert "Remove unnessesary async and close on error in gateway"

This reverts commit e55ad7ee3d.
This commit is contained in:
Madeline
2022-07-22 22:13:52 +10:00
parent a6a2ba22fe
commit cecd4adab0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
}