Bug in Lobby close()
This commit is contained in:
1 parent
2e68a7d891
commit
34cdac8102
1 file changed
+2
-2
+2
-2
@@ -26,8 +26,8 @@ class Lobby extends EventEmitter
|
|||||||
// Close the peers.
|
// Close the peers.
|
||||||
for (const peer in this._peers)
|
for (const peer in this._peers)
|
||||||
{
|
{
|
||||||
if (!peer.closed)
|
if (!this._peers[peer].closed)
|
||||||
peer.close();
|
this._peers[peer].close();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._peers = null;
|
this._peers = null;
|
||||||
|
|||||||
Reference in new issue
Block a user