Browse Source

Add more close codes that can't be handled for reconnecting.

pull/5849/head
Rapptz 5 years ago
parent
commit
ec7b8edcc2
  1. 2
      discord/gateway.py

2
discord/gateway.py

@ -517,7 +517,7 @@ class DiscordWebSocket:
def _can_handle_close(self): def _can_handle_close(self):
code = self._close_code or self.socket.close_code 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): async def poll_event(self):
"""Polls for a DISPATCH event and handles the general gateway loop. """Polls for a DISPATCH event and handles the general gateway loop.

Loading…
Cancel
Save