mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-22 19:06:44 +00:00
Support more close codes for RESUME.
This commit is contained in:
parent
6b5d579d0b
commit
dbd3147059
@ -337,7 +337,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 in (4006, 4008, 4009) or code in range(1001, 1015)
|
return code not in (1000, 1001, 4004)
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def poll_event(self):
|
def poll_event(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user