aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):