From e4d06f4035f786bc094de0175f205d3c3834875a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 8 Sep 2009 07:13:49 +0200 Subject: [PATCH] [red-agent] don't reconnect to groupchat when we are disconnected. Fixes #5257 --- src/groupchat_control.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index c936bc524e..97cac99b0e 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1029,7 +1029,9 @@ class GroupchatControl(ChatControlBase): self.parent_win.redraw_tab(self) # Autorejoin stuff goes here. - if self.autorejoin is None: + # Notice that we don't need to activate autorejoin if connection is lost + # or in progress. + if self.autorejoin is None and gajim.cccount_is_connectedself.account): ar_to = gajim.config.get('muc_autorejoin_timeout') if ar_to: self.autorejoin = gobject.timeout_add_seconds(ar_to, self.rejoin) -- GitLab