🐛 fix identify schema

This commit is contained in:
Flam3rboy
2021-05-01 13:53:26 +02:00
parent 6c62d72737
commit 5f56ca2ef3
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ export async function Message(this: WebSocket, buffer: Data) {
return await OPCodeHandler.call(this, data);
} catch (error) {
console.error(error);
return this.close(CLOSECODES.Unknown_error);
if (!this.CLOSED && this.CLOSING) return this.close(CLOSECODES.Unknown_error);
}
}