diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index dad81e7c..e055c143 100644 --- a/back/src/Controller/IoSocketController.ts +++ b/back/src/Controller/IoSocketController.ts @@ -205,7 +205,11 @@ export class IoSocketController { })); //disconnect webrtc room + if(!Client.webRtcRoomId){ + return; + } Client.leave(Client.webRtcRoomId); + delete Client.webRtcRoomId; } /**