Wait 5 seconds before attempting to RESUME during INVALIDATE_SESSION.

This commit is contained in:
Rapptz 2017-04-22 21:34:56 -04:00
parent 1519a6fefa
commit e445fa9335

View File

@ -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)