From 7980e1a6fcfde00ef97142b8ffc3b90b38067cd1 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Fri, 6 Jan 2023 15:21:35 +0100 Subject: [PATCH] fix wrong variable name on connection closing --- client/scripts/network.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } }