*If the error is a timeout, flag it to the resolve method

This commit is contained in:
Derrick Hammer 2022-09-09 22:05:22 -04:00
parent 62ef56b554
commit 88377a75ce
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

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