diff --git a/discord/gateway.py b/discord/gateway.py index 13ea85b7b..43bb890ab 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -396,6 +396,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): self.sequence = None self.session_id = None log.info('Shard ID %s session has been invalidated.', self.shard_id) + await asyncio.sleep(5.0) await self.identify() return