From c8252c4583aac3dd5858b9aebb2d5a255c4c4af7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 23 Aug 2010 14:55:03 +0200 Subject: [PATCH] don't try to reconnect a disabled account. Fixes #5865 --- src/common/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index 7c77e6f2c..39c83edf1 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -2292,6 +2292,9 @@ class Connection(CommonConnection, ConnectionHandlers): self._disconnectedReconnCB() def _reconnect_alarm(self): + if not gajim.config.get_per('accounts', self.name, 'active'): + # Account may have been disabled + return if self.time_to_reconnect: if self.connected < 2: self._reconnect()