don't call quit_gtkgui_interface twice
This commit is contained in:
parent
c54ffecd31
commit
7a59f55d17
|
@ -2387,13 +2387,14 @@ class RosterWindow:
|
||||||
self.quit_on_next_offline += 1
|
self.quit_on_next_offline += 1
|
||||||
accounts_to_disconnect.append(acct)
|
accounts_to_disconnect.append(acct)
|
||||||
|
|
||||||
|
if not self.quit_on_next_offline:
|
||||||
|
self.quit_gtkgui_interface()
|
||||||
|
return
|
||||||
|
|
||||||
for acct in accounts_to_disconnect:
|
for acct in accounts_to_disconnect:
|
||||||
self.send_status(acct, 'offline', message)
|
self.send_status(acct, 'offline', message)
|
||||||
self.send_pep(acct, pep_dict)
|
self.send_pep(acct, pep_dict)
|
||||||
|
|
||||||
if not self.quit_on_next_offline:
|
|
||||||
self.quit_gtkgui_interface()
|
|
||||||
|
|
||||||
def on_continue2(message, pep_dict):
|
def on_continue2(message, pep_dict):
|
||||||
# check if there is an active file transfer
|
# check if there is an active file transfer
|
||||||
from common.protocol.bytestream import (is_transfer_active)
|
from common.protocol.bytestream import (is_transfer_active)
|
||||||
|
|
Loading…
Reference in New Issue