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,12 +535,12 @@ class Connection extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request(request, timeout?: number): Promise<any> {
|
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) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
if (!this._shouldBeConnected) {
|
if (!this._shouldBeConnected) {
|
||||||
reject(new NotConnectedError())
|
reject(new NotConnectedError())
|
||||||
}
|
}
|
||||||
|
|
||||||
await this._waitForReady()
|
|
||||||
|
|
||||||
let timer = null
|
let timer = null
|
||||||
const self = this
|
const self = this
|
||||||
|
|||||||
Reference in New Issue
Block a user