mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-22 07:46: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) {
|
||||
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…
Add table
Add a link
Reference in a new issue