diff --git a/src/common/connection.ts b/src/common/connection.ts index 056ea1b0..679767ea 100644 --- a/src/common/connection.ts +++ b/src/common/connection.ts @@ -535,12 +535,12 @@ class Connection extends EventEmitter { } request(request, timeout?: number): Promise { + // Temporary: Lint error has already been refactored in PR #1141 + // eslint-disable-next-line no-async-promise-executor return new Promise(async (resolve, reject) => { if (!this._shouldBeConnected) { reject(new NotConnectedError()) } - - await this._waitForReady() let timer = null const self = this