Fixed bad conditional in webRTCHandler
This commit is contained in:
parent
a9258ae35c
commit
f1aa62cfbc
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue