mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-18 15:22:16 +00:00
only reopen connection if it exists
This commit is contained in:
@@ -329,8 +329,7 @@ class RTCPeer extends Peer {
|
||||
_onChannelClosed() {
|
||||
console.log('RTC: channel closed', this._peerId);
|
||||
Events.fire('peer-disconnected', this._peerId);
|
||||
if (!this._isCaller) return;
|
||||
if (!this._conn)
|
||||
if (!this._isCaller || !this._conn) return;
|
||||
this._connect(this._peerId, true); // reopen the channel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user