fix: have peerConnectedDefer resolve when we have a connected peer via peerConnected
This commit is contained in:
parent
8a7ff3a6ca
commit
beb42152b8
|
@ -92,7 +92,7 @@ async function setup() {
|
|||
|
||||
await s5peer.init();
|
||||
node.services.p2p.onNewPeer(s5peer, true);
|
||||
peerConnectedDefer.resolve();
|
||||
node.services.p2p.once("peerConnected", peerConnectedDefer.resolve);
|
||||
});
|
||||
|
||||
return peerConnectedDefer.promise;
|
||||
|
|
Loading…
Reference in New Issue