fix: have peerConnectedDefer resolve when we have a connected peer via peerConnected

This commit is contained in:
Derrick Hammer 2023-09-03 20:49:44 -04:00
parent 8a7ff3a6ca
commit beb42152b8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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