Fix: _pendingPeer nach Promote nullen, sonst killt _createPendingPeer die Live-Connection nach 300ms
All checks were successful
Pin to IPFS / pin (push) Successful in 10s
All checks were successful
Pin to IPFS / pin (push) Successful in 10s
This commit is contained in:
parent
c322e9f31b
commit
87d2d0f190
1 changed files with 1 additions and 0 deletions
1
p2p.js
1
p2p.js
|
|
@ -233,6 +233,7 @@ class MeshNet {
|
||||||
if (this._pendingPeer && this._pendingPeer.peer === peer) {
|
if (this._pendingPeer && this._pendingPeer.peer === peer) {
|
||||||
this._pendingPeer.peerId = msg.peerId;
|
this._pendingPeer.peerId = msg.peerId;
|
||||||
this._pendingPeer.connected = true;
|
this._pendingPeer.connected = true;
|
||||||
|
this._pendingPeer = null;
|
||||||
if (this.onpeerconnect) this.onpeerconnect(msg.peerId);
|
if (this.onpeerconnect) this.onpeerconnect(msg.peerId);
|
||||||
if (this.isHost) {
|
if (this.isHost) {
|
||||||
setTimeout(() => this._createPendingPeer(), 300);
|
setTimeout(() => this._createPendingPeer(), 300);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue