fix wrong variable name on connection closing

This commit is contained in:
schlagmichdoch 2023-01-06 15:21:35 +01:00
parent f769a76605
commit 7980e1a6fc

View file

@ -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();
} }
} }