From 5f733195c4696c7c203567301380df6b940aad89 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 16 Feb 2023 21:57:49 -0500 Subject: [PATCH] *Fix typo --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6af6681..36b96ae 100644 --- a/src/index.ts +++ b/src/index.ts @@ -318,7 +318,7 @@ async function handleListenConnections(aq: ActiveQuery) { aq.respond(); }); - swarm.activeRelay.dht.one("close", () => { + swarm.activeRelay.dht.once("close", () => { swarm.off("connection", listener); swarm.emit("close"); aq.respond();