*Call swarm init and ready before calling readyWithRelays on ready method
This commit is contained in:
parent
4e26f67b1d
commit
4eb5f24696
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue