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 op == self.INVALIDATE_SESSION:
|
||||||
if data == True:
|
if data == True:
|
||||||
|
yield from asyncio.sleep(5.0, loop=self.loop)
|
||||||
yield from self.close()
|
yield from self.close()
|
||||||
raise ResumeWebSocket(self.shard_id)
|
raise ResumeWebSocket(self.shard_id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user