*only return early if both activeRelay and ready are set
This commit is contained in:
parent
5f733195c4
commit
ac7d1a0db5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue