diff options
| author | Rapptz <[email protected]> | 2016-06-12 20:48:23 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-12 20:48:23 -0400 |
| commit | dbd3147059287edcb8c291ebe854d3ee68a86888 (patch) | |
| tree | b912582827a3ad65cb78d464dd51255865e0956d | |
| parent | Remove unused verify response function. (diff) | |
| download | discord.py-dbd3147059287edcb8c291ebe854d3ee68a86888.tar.xz discord.py-dbd3147059287edcb8c291ebe854d3ee68a86888.zip | |
Support more close codes for RESUME.
| -rw-r--r-- | discord/gateway.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index 382f6bca..4a12ec43 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -337,7 +337,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): del self._dispatch_listeners[index] 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 def poll_event(self): |