diff --git a/client/scripts/network.js b/client/scripts/network.js index 7108232..d4ed0d9 100644 --- a/client/scripts/network.js +++ b/client/scripts/network.js @@ -309,7 +309,7 @@ class RTCPeer extends Peer { _onChannelClosed() { console.log('RTC: channel closed', this._peerId); - if (!this.isCaller) return; + if (!this._isCaller) return; this._connect(this._peerId, true); // reopen the channel }