mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 16:56:16 -04:00
ws-fallback: remove all WSPeers when server connection disconnects + fix onPeerLeft
This commit is contained in:
parent
cf715b2872
commit
39ca5b2d21
2 changed files with 16 additions and 3 deletions
|
@ -491,6 +491,7 @@ class RTCPeer extends Peer {
|
|||
|
||||
constructor(serverConnection, peerId, roomType, roomSecret) {
|
||||
super(serverConnection, peerId, roomType, roomSecret);
|
||||
this.rtcSupported = true;
|
||||
if (!peerId) return; // we will listen for a caller
|
||||
this._connect(peerId, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue