Bug in Room close

auto_join_3.3
Håvar Aambø Fosstveit 2020-03-27 21:17:03 +01:00
parent 1e1f714db5
commit 2e68a7d891
1 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ class Room 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;