fix: use removeListener

This commit is contained in:
Derrick Hammer 2023-07-31 14:33:05 -04:00
parent 9882489bd9
commit 2eef5099c8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ async function handleStatus(aq: ActiveQuery) {
} }
aq.setReceiveUpdate?.(() => { aq.setReceiveUpdate?.(() => {
node.chain.off("tip", chainProgressListener); node.chain.removeListener("tip", chainProgressListener);
node.pool.off("peer", peersListener); node.pool.off("peer", peersListener);
node.pool.off("peer close", peersListener); node.pool.off("peer close", peersListener);
aq.respond(); aq.respond();