From 14140077adf40eae0e054a7321fe2b5da51b5507 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 2 Nov 2008 15:48:14 +0000 Subject: [PATCH] [afflux] don't close Gajim after the first disconnect, but after all disconnects. Fixes #4409 --- src/roster_window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 5d2732f7c..3421303e4 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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()