Browse Source

Don't reconnect in sharding related codes.

pull/544/head
Rapptz 8 years ago
parent
commit
75e4163169
  1. 2
      discord/gateway.py

2
discord/gateway.py

@ -392,7 +392,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):

Loading…
Cancel
Save