*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) {
|
async function handleReady(aq: ActiveQuery) {
|
||||||
const swarm = await getSwarm(aq);
|
const swarm = await getSwarm(aq);
|
||||||
|
|
||||||
if (swarm.activeRelay) {
|
if (swarm.activeRelay && swarm.ready) {
|
||||||
aq.respond();
|
aq.respond();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue