fix: use removeListener
This commit is contained in:
parent
9882489bd9
commit
2eef5099c8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue