mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Remove handling of ReconnectWebsocket
This commit is contained in:
parent
1cd50919a1
commit
09bd2f4de7
@ -446,8 +446,8 @@ class Client:
|
||||
while not self.is_closed:
|
||||
try:
|
||||
yield from self.ws.poll_event()
|
||||
except (ReconnectWebSocket, ResumeWebSocket) as e:
|
||||
log.info('Got ' + type(e).__name__)
|
||||
except ResumeWebSocket:
|
||||
log.info('Got ResumeWebsocket')
|
||||
self.ws = yield from DiscordWebSocket.from_client(self, resume=True)
|
||||
except ConnectionClosed as e:
|
||||
yield from self.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user