diff --git a/src/index.ts b/src/index.ts index 36b96ae..c8bd41b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -296,7 +296,7 @@ async function handleInit(aq: ActiveQuery) { async function handleReady(aq: ActiveQuery) { const swarm = await getSwarm(aq); - if (swarm.activeRelay) { + if (swarm.activeRelay && swarm.ready) { aq.respond(); return; }