mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 07:16:18 -04:00
only reopen connection if it exists
This commit is contained in:
parent
7b84154e3f
commit
8b8c887458
1 changed files with 4 additions and 4 deletions
|
@ -309,7 +309,7 @@ class RTCPeer extends Peer {
|
|||
|
||||
_onChannelClosed() {
|
||||
console.log('RTC: channel closed', this._peerId);
|
||||
if (!this._isCaller) return;
|
||||
if (!this._isCaller || !this._conn) return;
|
||||
this._connect(this._peerId, true); // reopen the channel
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue