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; } }