fix(Client): Ensure destroyed connections are not ready
backport #9942 djs v14
This commit is contained in:
@@ -317,7 +317,7 @@ class Client extends BaseClient {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isReady() {
|
||||
return this.ws.status === Status.READY;
|
||||
return !this.ws.destroyed && this.ws.status === Status.READY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user