Browse Source

Wait 5 seconds before IDENTIFYing with an invalidated session.

pull/2482/head
Rapptz 5 years ago
parent
commit
ec4962a14c
  1. 1
      discord/gateway.py

1
discord/gateway.py

@ -396,6 +396,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
self.sequence = None self.sequence = None
self.session_id = None self.session_id = None
log.info('Shard ID %s session has been invalidated.', self.shard_id) log.info('Shard ID %s session has been invalidated.', self.shard_id)
await asyncio.sleep(5.0)
await self.identify() await self.identify()
return return

Loading…
Cancel
Save