Revert "*add a _timeoutCanceled property and abort handeTimeout if true"

This reverts commit 309b9b0ac6.
This commit is contained in:
Derrick Hammer 2022-09-20 06:13:38 -04:00
parent f9036e1c73
commit 1d73d23700
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 4 deletions

View File

@ -14,7 +14,6 @@ export default abstract class RpcQueryBase {
protected _promise?: Promise<any>; protected _promise?: Promise<any>;
protected _timeoutTimer?: any; protected _timeoutTimer?: any;
protected _timeout: boolean = false; protected _timeout: boolean = false;
protected _timeoutCanceled: boolean = false;
protected _completed: boolean = false; protected _completed: boolean = false;
protected _responses: { [relay: string]: RPCResponse } = {}; protected _responses: { [relay: string]: RPCResponse } = {};
protected _errors: { [relay: string]: any } = {}; protected _errors: { [relay: string]: any } = {};
@ -35,9 +34,6 @@ export default abstract class RpcQueryBase {
} }
private handeTimeout() { private handeTimeout() {
if (this._timeoutCanceled) {
return;
}
this.resolve(undefined, true); this.resolve(undefined, true);
} }