*If the error is a timeout, flag it to the resolve method
This commit is contained in:
parent
62ef56b554
commit
88377a75ce
|
@ -23,7 +23,8 @@ export default class SimpleRpcQuery extends RpcQueryBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(this._errors).length) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue