diff --git a/www/js/channel/webRTCHandler.js b/www/js/channel/webRTCHandler.js index 75f7b31..c740f89 100644 --- a/www/js/channel/webRTCHandler.js +++ b/www/js/channel/webRTCHandler.js @@ -172,7 +172,7 @@ class webRTCHandler{ const viewer = this.currentViewers.get(data.source.user); //If not - if(data.user == null){ + if(viewer == null){ //Create a new connected viewer object from the received data, and store it in the currentViewers map by username this.currentViewers.set(data.source.user, new connectedViewer( data.source.user,