mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
nevermind, regression wasn't actually a regression
This commit is contained in:
@@ -535,13 +535,13 @@ class Connection extends EventEmitter {
|
||||
}
|
||||
|
||||
request(request, timeout?: number): Promise<any> {
|
||||
// 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
|
||||
const id = this._nextRequestID
|
||||
|
||||
Reference in New Issue
Block a user