Skip to content
Snippets Groups Projects
Commit 7db92164 authored by dkirov's avatar dkirov
Browse files

make sure we are disconnected after connection

is lost ??? #1955 by j@bootlab.org
parent f619ddd7
No related branches found
No related tags found
No related merge requests found
......@@ -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.')))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment