mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Wait 5 seconds before attempting to RESUME during INVALIDATE_SESSION.
This commit is contained in:
parent
1519a6fefa
commit
e445fa9335
@ -337,6 +337,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
||||
|
||||
if op == self.INVALIDATE_SESSION:
|
||||
if data == True:
|
||||
yield from asyncio.sleep(5.0, loop=self.loop)
|
||||
yield from self.close()
|
||||
raise ResumeWebSocket(self.shard_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user