From 6dc309db34aebd46c784b1402c9f147644df60a5 Mon Sep 17 00:00:00 2001 From: gparant Date: Fri, 8 May 2020 21:17:52 +0200 Subject: [PATCH] Fix manage webrtc room id --- back/src/Controller/IoSocketController.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/back/src/Controller/IoSocketController.ts b/back/src/Controller/IoSocketController.ts index dad81e7..e055c14 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; } /** -- 2.25.1