fix wrong variable name on connection closing
This commit is contained in:
parent
f769a76605
commit
7980e1a6fc
1 changed files with 2 additions and 2 deletions
|
@ -407,8 +407,8 @@ class PeersManager {
|
|||
_onPeerLeft(peerId) {
|
||||
const peer = this.peers[peerId];
|
||||
delete this.peers[peerId];
|
||||
if (!peer || !peer._peer) return;
|
||||
peer._peer.close();
|
||||
if (!peer || !peer._conn) return;
|
||||
peer._conn.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue