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

This commit is contained in:
Ole 2026-06-14 16:23:44 +02:00
parent c322e9f31b
commit 87d2d0f190

1
p2p.js
View file

@ -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);