don't try to reconnect a disabled account. Fixes #5865
This commit is contained in:
parent
ed70219022
commit
c8252c4583
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue