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

This commit is contained in:
Yann Leboulanger 2015-07-27 13:36:49 +02:00
parent d65882dea5
commit 42cec3e7f2
1 changed files with 1 additions and 1 deletions

View File

@ -1532,7 +1532,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)