summary refs log tree commit diff
path: root/src/opcodes/Identify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/opcodes/Identify.ts')
-rw-r--r--src/opcodes/Identify.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opcodes/Identify.ts b/src/opcodes/Identify.ts

index 75e00b28..0f0ca470 100644 --- a/src/opcodes/Identify.ts +++ b/src/opcodes/Identify.ts
@@ -25,7 +25,7 @@ import { check } from "./instanceOf"; export async function onIdentify(this: WebSocket, data: Payload) { clearTimeout(this.readyTimeout); - check.call(this, IdentifySchema, data.d); + if (!check.call(this, IdentifySchema, data.d)) return; const identify: IdentifySchema = data.d;