mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 23:02:15 +00:00
fix problem of multiple creation of PeerUI when peer has joined mutliple times without successfully creating a p2p connection
This commit is contained in:
@@ -311,7 +311,7 @@ class RTCPeer extends Peer {
|
||||
|
||||
_onChannelClosed() {
|
||||
console.log('RTC: channel closed', this._peerId);
|
||||
Events.fire('peer-left', this._peerId);
|
||||
Events.fire('peer-disconnected', this._peerId);
|
||||
if (!this._isCaller) return;
|
||||
this._connect(this._peerId, true); // reopen the channel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user