- Accidental NoneType ref when auth error is triggered
This commit is contained in:
parent
71a05f0fe1
commit
0975bc8275
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue