Change how we clear the timer
This commit is contained in:
parent
a3cb70fa24
commit
3485a3f533
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue