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