mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(packages/api): handle close event as a disconnect
This commit is contained in:
@@ -77,9 +77,13 @@ export class ClientWebSocketManager {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
rj(e)
|
rj(e)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
|
||||||
this.connecting = false
|
|
||||||
})
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.#socket.on('close', (code, reason) => this._handleDisconnect(code, reason.toString()))
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.connecting = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user