*Use swarmEvents not swarm.onceSelf to emit the close
This commit is contained in:
parent
2e1780e28f
commit
2c3d15c734
|
@ -359,7 +359,7 @@ async function handleListenConnections(aq: ActiveQuery) {
|
|||
};
|
||||
|
||||
const hookClose = () => {
|
||||
swarm.onceSelf("close", closeCb);
|
||||
swarmEvent?.once("close", closeCb);
|
||||
};
|
||||
|
||||
if (swarm.activeRelay) {
|
||||
|
|
Loading…
Reference in New Issue