make sure we are disconnected after connection

is lost ??? #1955 by j@bootlab.org
This commit is contained in:
Dimitur Kirov 2006-05-11 20:51:39 +00:00
parent f619ddd76b
commit 7db9216442
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ class Connection(ConnectionHandlers):
# END disconenctedReconnCB
def _connection_lost(self):
self.disconnect(on_purpose = False)
self.dispatch('STATUS', 'offline')
self.dispatch('ERROR',
(_('Connection with account "%s" has been lost') % self.name,
_('To continue sending and receiving messages, you will need to reconnect.')))