Don't RESUME when given sharding related close codes.

This commit is contained in:
Rapptz 2017-02-15 17:58:57 -05:00
parent bb8f5f4725
commit a6b180b5ad

View File

@ -395,7 +395,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
del self._dispatch_listeners[index]
def _can_handle_close(self, code):
return code not in (1000, 4004)
return code not in (1000, 4004, 4010, 4011)
@asyncio.coroutine
def poll_event(self):