don't disconnect an account that is not fully connected. Fixes #5648

This commit is contained in:
Yann Leboulanger 2010-03-10 22:43:55 +01:00
parent 9cb4de28f6
commit 33f16cd959
1 changed files with 1 additions and 1 deletions

View File

@ -2343,7 +2343,7 @@ class RosterWindow:
self.quit_on_next_offline = 0 self.quit_on_next_offline = 0
accounts_to_disconnect = [] accounts_to_disconnect = []
for acct in accounts: for acct in accounts:
if gajim.connections[acct].connected: if gajim.connections[acct].connected > 1:
self.quit_on_next_offline += 1 self.quit_on_next_offline += 1
accounts_to_disconnect.append(acct) accounts_to_disconnect.append(acct)