mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 15:26:17 -04:00
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) {
|
_onPeerLeft(peerId) {
|
||||||
const peer = this.peers[peerId];
|
const peer = this.peers[peerId];
|
||||||
delete this.peers[peerId];
|
delete this.peers[peerId];
|
||||||
if (!peer || !peer._peer) return;
|
if (!peer || !peer._conn) return;
|
||||||
peer._peer.close();
|
peer._conn.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue