From bb8bafc10ddef9ebb5dc5df4b1bb50dbfa9392d6 Mon Sep 17 00:00:00 2001 From: Wolfhound905 Date: Wed, 21 Feb 2024 15:47:24 +0000 Subject: [PATCH] fix: re-set _shard_ready on resume --- interactions/api/gateway/gateway.py | 1 + 1 file changed, 1 insertion(+) diff --git a/interactions/api/gateway/gateway.py b/interactions/api/gateway/gateway.py index 3ed5210ad..d2cb4f5a2 100644 --- a/interactions/api/gateway/gateway.py +++ b/interactions/api/gateway/gateway.py @@ -214,6 +214,7 @@ async def dispatch_event(self, data, seq, event) -> None: return self.state.client.dispatch(events.WebsocketReady(data)) case "RESUMED": + self.state._shard_ready.set() self.state.wrapped_logger( logging.INFO, f"Successfully resumed connection! Session_ID: {self.session_id}" )