diff --git a/src/groupchat_control.py b/src/groupchat_control.py index c936bc524edf9ed14938a19497a670ed9edd099d..97cac99b0e8276e7a010c25ac98d8a1dff70ee6e 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)