From efb5d3e35f2218ebfe54de00776360162d3583d0 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:28:48 +0700 Subject: [PATCH] fix(Client): Ensure destroyed connections are not ready backport #9942 djs v14 --- src/client/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.js b/src/client/Client.js index 61d1ecd..4613ea6 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -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; } /**