aboutsummaryrefslogtreecommitdiff
path: root/discord/gateway.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-04 08:02:52 -0400
committerRapptz <[email protected]>2020-09-23 03:21:16 -0400
commitec7b8edcc2933a8d68f036a17d70c7868b0d65df (patch)
treeca166c8fe3384db0ebf5042c09552deed25e0978 /discord/gateway.py
parentChange unknown cache log warnings from WARNING -> DEBUG (diff)
downloaddiscord.py-ec7b8edcc2933a8d68f036a17d70c7868b0d65df.tar.xz
discord.py-ec7b8edcc2933a8d68f036a17d70c7868b0d65df.zip
Add more close codes that can't be handled for reconnecting.
Diffstat (limited to 'discord/gateway.py')
-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.