diff options
| author | Rapptz <[email protected]> | 2017-03-15 16:54:39 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-03-15 16:54:39 -0400 |
| commit | 75e4163169d72a74fb85334eacac7058696756f2 (patch) | |
| tree | c17efe419790dc53acb471f2c01d44d0199c55fe | |
| parent | Better timeout handling in join_voice_channel (diff) | |
| download | discord.py-75e4163169d72a74fb85334eacac7058696756f2.tar.xz discord.py-75e4163169d72a74fb85334eacac7058696756f2.zip | |
Don't reconnect in sharding related codes.
| -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 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): |