diff --git a/src/webrtc/events/Close.ts b/src/webrtc/events/Close.ts index 7b71e9ce..0419a70e 100644 --- a/src/webrtc/events/Close.ts +++ b/src/webrtc/events/Close.ts @@ -17,11 +17,9 @@ */ import { WebSocket } from "@spacebar/gateway"; -import { Session } from "@spacebar/util"; export async function onClose(this: WebSocket, code: number, reason: string) { console.log("[WebRTC] closed", code, reason.toString()); - if (this.session_id) await Session.delete({ session_id: this.session_id }); this.removeAllListeners(); }