From 2eef5099c8277624e88b9a310aed14adf78e4b3f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 31 Jul 2023 14:33:05 -0400 Subject: [PATCH] fix: use removeListener --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bdeded0..a97946c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -228,7 +228,7 @@ async function handleStatus(aq: ActiveQuery) { } aq.setReceiveUpdate?.(() => { - node.chain.off("tip", chainProgressListener); + node.chain.removeListener("tip", chainProgressListener); node.pool.off("peer", peersListener); node.pool.off("peer close", peersListener); aq.respond();