- Accidental NoneType ref when auth error is triggered

This commit is contained in:
trigg 2022-04-07 14:12:39 +00:00
parent 71a05f0fe1
commit 0975bc8275

View file

@ -650,6 +650,9 @@ class DiscordConnector:
# Receive & send to on_message
msg = self.websocket.recv()
self.on_message(msg)
if not self.websocket:
# Connection was closed in the meantime
return True
recv, _w, _e = select.select((self.websocket.sock,), (), (), 0)
except websocket.WebSocketConnectionClosedException:
self.on_close()