aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/discord/client.py b/discord/client.py
index 440b5be3..7f99252b 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -369,10 +369,8 @@ class Client:
await self.ws.poll_event()
except ResumeWebSocket:
log.info('Got a request to RESUME the websocket.')
- coro = DiscordWebSocket.from_client(self, shard_id=self.shard_id,
- session=self.ws.session_id,
- sequence=self.ws.sequence,
- resume=True)
+ coro = DiscordWebSocket.from_client(self, shard_id=self.shard_id, session=self.ws.session_id,
+ sequence=self.ws.sequence, resume=True)
self.ws = await asyncio.wait_for(coro, timeout=180.0, loop=self.loop)
async def connect(self, *, reconnect=True):