From ac7d1a0db5b0aef94f080bd90930e62ffe52f7c3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 08:10:14 -0500 Subject: [PATCH] *only return early if both activeRelay and ready are set --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }