From: gparant Date: Fri, 8 May 2020 19:17:52 +0000 (+0200) Subject: Fix manage webrtc room id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6dc309db34aebd46c784b1402c9f147644df60a5;p=libreadventure.git Fix manage webrtc room id --- 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; } /**