mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 23:02:15 +00:00
fix peer._channel is undefined
This commit is contained in:
@@ -443,7 +443,7 @@ class PeersManager {
|
|||||||
const peer = this.peers[peerId];
|
const peer = this.peers[peerId];
|
||||||
delete this.peers[peerId];
|
delete this.peers[peerId];
|
||||||
if (!peer || !peer._conn) return;
|
if (!peer || !peer._conn) return;
|
||||||
peer._channel.onclose = null;
|
if (peer._channel) peer._channel.onclose = null;
|
||||||
peer._conn.close();
|
peer._conn.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user