fix(Client): Ensure destroyed connections are not ready

backport #9942 djs v14
This commit is contained in:
Elysia
2024-09-17 11:28:48 +07:00
parent 7abf153b56
commit efb5d3e35f

View File

@@ -317,7 +317,7 @@ class Client extends BaseClient {
* @returns {boolean} * @returns {boolean}
*/ */
isReady() { isReady() {
return this.ws.status === Status.READY; return !this.ws.destroyed && this.ws.status === Status.READY;
} }
/** /**