|
|
@ -447,9 +447,8 @@ class Client: |
|
|
|
try: |
|
|
|
yield from self.ws.poll_event() |
|
|
|
except (ReconnectWebSocket, ResumeWebSocket) as e: |
|
|
|
resume = type(e) is ResumeWebSocket |
|
|
|
log.info('Got ' + type(e).__name__) |
|
|
|
self.ws = yield from DiscordWebSocket.from_client(self, resume=resume) |
|
|
|
self.ws = yield from DiscordWebSocket.from_client(self, resume=True) |
|
|
|
except ConnectionClosed as e: |
|
|
|
yield from self.close() |
|
|
|
if e.code != 1000: |
|
|
|