Revert "Revert "Remove unnessesary async and close on error in gateway""
This reverts commit cecd4adab0.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user