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

index ee0e72b3..8e38a11a 100644 --- a/src/webrtc/opcodes/Heartbeat.ts +++ b/src/webrtc/opcodes/Heartbeat.ts
@@ -21,7 +21,7 @@ import { VoiceOPCodes, VoicePayload, WebRtcWebSocket, Send } from "../util"; export async function onHeartbeat(this: WebRtcWebSocket, data: VoicePayload) { setHeartbeat(this); - if (isNaN(data.d)) return this.close(CLOSECODES.Decode_error); + if (isNaN(data.d)) return this.rawSocket.close(CLOSECODES.Decode_error); await Send(this, { op: VoiceOPCodes.HEARTBEAT_ACK, d: data.d }); }