mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-11 22:08:49 +00:00
Don't reconnect in sharding related codes.
This commit is contained in:
parent
2f159098b1
commit
75e4163169
@ -392,7 +392,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
|||||||
del self._dispatch_listeners[index]
|
del self._dispatch_listeners[index]
|
||||||
|
|
||||||
def _can_handle_close(self, code):
|
def _can_handle_close(self, code):
|
||||||
return code not in (1000, 4004)
|
return code not in (1000, 4004, 4010, 4011)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def poll_event(self):
|
def poll_event(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user