*Use swarmEvents not swarm.onceSelf to emit the close

This commit is contained in:
Derrick Hammer 2023-03-29 14:48:15 -04:00
parent 2e1780e28f
commit 2c3d15c734
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ async function handleListenConnections(aq: ActiveQuery) {
};
const hookClose = () => {
swarm.onceSelf("close", closeCb);
swarmEvent?.once("close", closeCb);
};
if (swarm.activeRelay) {