From 88377a75cea6491f9094cf40b965a57fa52085d9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 9 Sep 2022 22:05:22 -0400 Subject: [PATCH] *If the error is a timeout, flag it to the resolve method --- src/query/simple.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/simple.ts b/src/query/simple.ts index 511bbea..3ea7cb1 100644 --- a/src/query/simple.ts +++ b/src/query/simple.ts @@ -23,7 +23,8 @@ export default class SimpleRpcQuery extends RpcQueryBase { } if (Object.keys(this._errors).length) { - this.resolve({ error: Object.values(this._errors).pop() }); + const error = Object.values(this._errors).pop(); + this.resolve(error, error === "timeout"); return; } }