aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-15 16:54:39 -0400
committerRapptz <[email protected]>2017-03-15 16:54:39 -0400
commit75e4163169d72a74fb85334eacac7058696756f2 (patch)
treec17efe419790dc53acb471f2c01d44d0199c55fe
parentBetter timeout handling in join_voice_channel (diff)
downloaddiscord.py-75e4163169d72a74fb85334eacac7058696756f2.tar.xz
discord.py-75e4163169d72a74fb85334eacac7058696756f2.zip
Don't reconnect in sharding related 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 386a21c6..5940c6ba 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -392,7 +392,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):