don't call quit_gtkgui_interface twice

This commit is contained in:
Denis Fomin 2011-10-20 13:49:16 +03:00
parent c54ffecd31
commit 7a59f55d17
1 changed files with 4 additions and 3 deletions

View File

@ -2387,13 +2387,14 @@ class RosterWindow:
self.quit_on_next_offline += 1
accounts_to_disconnect.append(acct)
if not self.quit_on_next_offline:
self.quit_gtkgui_interface()
return
for acct in accounts_to_disconnect:
self.send_status(acct, 'offline', message)
self.send_pep(acct, pep_dict)
if not self.quit_on_next_offline:
self.quit_gtkgui_interface()
def on_continue2(message, pep_dict):
# check if there is an active file transfer
from common.protocol.bytestream import (is_transfer_active)