*only return early if both activeRelay and ready are set

This commit is contained in:
Derrick Hammer 2023-02-17 08:10:14 -05:00
parent 5f733195c4
commit ac7d1a0db5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}