fix this._isCaller variable typo

This commit is contained in:
schlagmichdoch 2022-11-09 01:44:17 +01:00
parent cc9c2bf088
commit d101f90ea2

View file

@ -302,7 +302,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
}