Timeout when doing initial connection.
This commit is contained in:
1 parent
b6ac856868
commit
3cfebc4605
3 files changed
+25
-16
No files matched your search
+1
-1
@@ -220,7 +220,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
||||
except websockets.exceptions.ConnectionClosed:
|
||||
# ws got closed so let's just do a regular IDENTIFY connect.
|
||||
log.info('RESUME failed (the websocket decided to close) for Shard ID %s. Retrying.', shard_id)
|
||||
return (yield from cls.from_client(client))
|
||||
return (yield from cls.from_client(client, shard_id=shard_id))
|
||||
else:
|
||||
return ws
|
||||
|
||||
|
||||
Reference in new issue
Block a user