Commit af88260a authored by Yann Leboulanger's avatar Yann Leboulanger

do not crash when authentication with server fails. Fixes #8115

parent 94b892ad
......@@ -1512,7 +1512,7 @@ class Connection(CommonConnection, ConnectionHandlers):
if self.on_connect_auth:
self.on_connect_auth(None)
self.on_connect_auth = None
return
return
if not self.connected: # We went offline during connecting process
if self.on_connect_auth:
self.on_connect_auth(None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment