aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-12-17 23:34:49 -0500
committerRapptz <[email protected]>2019-12-17 23:34:49 -0500
commitec4962a14c35ff42d8bf0f7ca7f6795e01745e15 (patch)
treeb85b96ffa2bc9ec58fd0f9d60e5b821df4ca90a9
parent[commands] Make Greedy ignore parsing errors. (diff)
downloaddiscord.py-ec4962a14c35ff42d8bf0f7ca7f6795e01745e15.tar.xz
discord.py-ec4962a14c35ff42d8bf0f7ca7f6795e01745e15.zip
Wait 5 seconds before IDENTIFYing with an invalidated session.
-rw-r--r--discord/gateway.py1
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