From 7db921644227157a8f1c382b4dedb629662ab8b1 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 11 May 2006 20:51:39 +0000 Subject: [PATCH] make sure we are disconnected after connection is lost ??? #1955 by j@bootlab.org --- src/common/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index ed9b51b67..850317ce8 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -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.')))