Compare commits

..

2 Commits

1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,12 @@ async function handleListenConnections(aq: ActiveQuery) {
swarm.off("connection", listener); swarm.off("connection", listener);
aq.respond(); aq.respond();
}); });
swarm.activeRelay.dht.once("close", () => {
swarm.off("connection", listener);
swarm.emit("close");
aq.respond();
});
} }
async function handleGetSocketInfo(aq: ActiveQuery) { async function handleGetSocketInfo(aq: ActiveQuery) {