[afflux] don't close Gajim after the first disconnect, but after all disconnects. Fixes #4409
This commit is contained in:
parent
223dc0a8f2
commit
14140077ad
|
@ -2255,10 +2255,14 @@ class RosterWindow:
|
|||
|
||||
def on_continue2(message):
|
||||
self.quit_on_next_offline = 0
|
||||
accounts_to_disconnect = []
|
||||
for acct in accounts:
|
||||
if gajim.connections[acct].connected:
|
||||
self.quit_on_next_offline += 1
|
||||
self.send_status(acct, 'offline', message)
|
||||
accounts_to_disconnect.append(acct)
|
||||
|
||||
for acct in accounts_to_disconnect:
|
||||
self.send_status(acct, 'offline', message)
|
||||
|
||||
if not self.quit_on_next_offline:
|
||||
self.quit_gtkgui_interface()
|
||||
|
|
Loading…
Reference in New Issue