diff options
Diffstat (limited to 'discord/gateway.py')
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index b3fca3a3..caca7e09 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -363,7 +363,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): return if op == self.INVALIDATE_SESSION: - if data == True: + if data is True: await asyncio.sleep(5.0, loop=self.loop) await self.close() raise ResumeWebSocket(self.shard_id) |