Skip to content

Commit fa19cd0

Browse files
committed
webrtc gateway shouldnt remove session on close
1 parent f28ebd1 commit fa19cd0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/webrtc/events/Close.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
*/
1818

1919
import { WebSocket } from "@spacebar/gateway";
20-
import { Session } from "@spacebar/util";
2120

2221
export async function onClose(this: WebSocket, code: number, reason: string) {
2322
console.log("[WebRTC] closed", code, reason.toString());
2423

25-
if (this.session_id) await Session.delete({ session_id: this.session_id });
2624
this.removeAllListeners();
2725
}

0 commit comments

Comments
 (0)