diff --git a/client/scripts/network.js b/client/scripts/network.js index e1383f3..e274576 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -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(); } }