don't try to reconnect a disabled account. Fixes #5865

This commit is contained in:
Yann Leboulanger 2010-08-23 14:55:03 +02:00
parent ed70219022
commit c8252c4583
1 changed files with 3 additions and 0 deletions

View File

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