diff options
| author | Rapptz <[email protected]> | 2017-02-15 17:58:57 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-15 17:58:57 -0500 |
| commit | a6b180b5ad8764499abb928506ec4c83b71714dc (patch) | |
| tree | 329108c07fb792f3dabf74e15a2967f2f145eeb6 | |
| parent | Make discord.ext a namespace package. (diff) | |
| download | discord.py-a6b180b5ad8764499abb928506ec4c83b71714dc.tar.xz discord.py-a6b180b5ad8764499abb928506ec4c83b71714dc.zip | |
Don't RESUME when given sharding related close 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 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): |