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()