Change how we clear the timer

This commit is contained in:
Derrick Hammer 2022-09-09 21:18:02 -04:00
parent a3cb70fa24
commit 3485a3f533
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -57,8 +57,9 @@ export default class StreamingRpcQuery extends SimpleRpcQuery {
const listener = (res: Buffer) => { const listener = (res: Buffer) => {
relay = relay as string; relay = relay as string;
if (timer && timer.close) { if (timer) {
clearTimeout(timer as any); clearTimeout(timer as any);
timer = null;
} }
if (this._canceled) { if (this._canceled) {