diff options
| author | Rapptz <[email protected]> | 2019-12-17 23:34:49 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-12-17 23:34:49 -0500 |
| commit | ec4962a14c35ff42d8bf0f7ca7f6795e01745e15 (patch) | |
| tree | b85b96ffa2bc9ec58fd0f9d60e5b821df4ca90a9 | |
| parent | [commands] Make Greedy ignore parsing errors. (diff) | |
| download | discord.py-ec4962a14c35ff42d8bf0f7ca7f6795e01745e15.tar.xz discord.py-ec4962a14c35ff42d8bf0f7ca7f6795e01745e15.zip | |
Wait 5 seconds before IDENTIFYing with an invalidated session.
| -rw-r--r-- | discord/gateway.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 13ea85b7..43bb890a 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 |