*Call swarm init and ready before calling readyWithRelays on ready method

This commit is contained in:
Derrick Hammer 2023-03-19 15:22:41 -04:00
parent 4e26f67b1d
commit 4eb5f24696
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ async function handleSimpleQuery(aq: ActiveQuery) {
}
async function handleReady(aq: ActiveQuery) {
const network = await getNetwork(aq);
const swarm: SwarmClient = network.swarm;
await swarm.init();
await swarm.ready();
await (
await getNetwork(aq)
).readyWithRelays;