on_connect_failure is None after we auth

This commit is contained in:
Dimitur Kirov 2006-04-14 05:23:19 +00:00
parent 3849af4c6b
commit a7fe49be20
1 changed files with 5 additions and 1 deletions

View File

@ -334,7 +334,11 @@ class Connection(ConnectionHandlers):
if not retry or self.retrycount > 10:
self.retrycount = 0
self.time_to_reconnect = None
self.on_connect_failure()
if self.on_connect_failure:
self.on_connect_failure()
else:
#FIXME show error dialog that connection is lost (line 151)
pass
else:
# try reconnect if connection has failed before auth to server
self._disconnectedReconnCB()