fix: await swarm.join

This commit is contained in:
Derrick Hammer 2023-07-08 00:58:40 -04:00
parent 769f48e36b
commit f08c87c184
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ async function handlePresentKey(aq: ActiveQuery) {
peerConnected.resolve(); peerConnected.resolve();
}); });
swarm.join(PROTOCOL); await swarm.join(PROTOCOL);
await swarm.start(); await swarm.start();
await peerConnected.promise; await peerConnected.promise;