aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-16 19:13:13 -0400
committerRapptz <[email protected]>2016-06-16 19:13:13 -0400
commit92fe4daa86e4899742641c0ab29fd32525a32b27 (patch)
tree973f8991ceefbf89cdcfb2bbd07692113289e499
parent[commands] Add Context.cog property. (diff)
downloaddiscord.py-92fe4daa86e4899742641c0ab29fd32525a32b27.tar.xz
discord.py-92fe4daa86e4899742641c0ab29fd32525a32b27.zip
Attempt resume when we receive a 1001.
-rw-r--r--discord/gateway.py2
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):