Added cookie consent and fixed bug in server
This commit is contained in:
+2
-1
@@ -82,7 +82,8 @@ class Room extends EventEmitter
|
||||
if (this._signalingPeers)
|
||||
for (let peer of this._signalingPeers)
|
||||
{
|
||||
peer.socket.disconnect();
|
||||
if (peer.socket)
|
||||
peer.socket.disconnect();
|
||||
};
|
||||
|
||||
this._signalingPeers.clear();
|
||||
|
||||
Reference in New Issue
Block a user