From 3485a3f533dcf26c5da765aea5aff6a59d8b5a27 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 9 Sep 2022 21:18:02 -0400 Subject: [PATCH] Change how we clear the timer --- src/query/streaming.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/streaming.ts b/src/query/streaming.ts index e0050b6..575b150 100644 --- a/src/query/streaming.ts +++ b/src/query/streaming.ts @@ -57,8 +57,9 @@ export default class StreamingRpcQuery extends SimpleRpcQuery { const listener = (res: Buffer) => { relay = relay as string; - if (timer && timer.close) { + if (timer) { clearTimeout(timer as any); + timer = null; } if (this._canceled) {