diff options
| author | Rapptz <[email protected]> | 2016-06-16 19:13:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-16 19:13:13 -0400 |
| commit | 92fe4daa86e4899742641c0ab29fd32525a32b27 (patch) | |
| tree | 973f8991ceefbf89cdcfb2bbd07692113289e499 | |
| parent | [commands] Add Context.cog property. (diff) | |
| download | discord.py-92fe4daa86e4899742641c0ab29fd32525a32b27.tar.xz discord.py-92fe4daa86e4899742641c0ab29fd32525a32b27.zip | |
Attempt resume when we receive a 1001.
| -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 01e6f7b1..91f8e078 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 not in (1000, 1001, 4004) + return code not in (1000, 4004) @asyncio.coroutine def poll_event(self): |