fix this._isCaller variable typo
This commit is contained in:
parent
cc9c2bf088
commit
d101f90ea2
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue