Fixes stops waiting for READY on RESUME events.
@@ -346,7 +346,12 @@ class ShardClient(runnable.RunnableClient):
if connect_task in completed:
raise connect_task.exception()
- self.logger.info("sent %s, waiting for READY event", "RESUME" if is_resume else "IDENTIFY")
+ if is_resume:
+ self.logger.info("sent RESUME")
+
+ else:
+ self.logger.info("sent IDENTIFY, waiting for READY event")
+
self._shard_state = ShardState.WAITING_FOR_READY
completed, _ = await asyncio.wait(
