Wait 5 seconds before attempting to RESUME during INVALIDATE_SESSION.
This commit is contained in:
1 parent
1519a6fefa
commit
e445fa9335
1 file changed
+1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user