aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-15 17:58:57 -0500
committerRapptz <[email protected]>2017-02-15 17:58:57 -0500
commita6b180b5ad8764499abb928506ec4c83b71714dc (patch)
tree329108c07fb792f3dabf74e15a2967f2f145eeb6
parentMake discord.ext a namespace package. (diff)
downloaddiscord.py-a6b180b5ad8764499abb928506ec4c83b71714dc.tar.xz
discord.py-a6b180b5ad8764499abb928506ec4c83b71714dc.zip
Don't RESUME when given sharding related close codes.
-rw-r--r--discord/gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/gateway.py b/discord/gateway.py
index 9c69baba..c44dba26 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -395,7 +395,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
del self._dispatch_listeners[index]
def _can_handle_close(self, code):
- return code not in (1000, 4004)
+ return code not in (1000, 4004, 4010, 4011)
@asyncio.coroutine
def poll_event(self):