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 9a605cd6..e7274520 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -517,7 +517,7 @@ class DiscordWebSocket:
def _can_handle_close(self):
code = self._close_code or self.socket.close_code
- return code not in (1000, 4004, 4010, 4011)
+ return code not in (1000, 4004, 4010, 4011, 4012, 4013, 4014)
async def poll_event(self):
"""Polls for a DISPATCH event and handles the general gateway loop.