changeset fc0e20d9098f in /home/hg/repos/gajim author: Yann Leboulanger <aste...@lagaule.org> branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=fc0e20d9098f description: do not try to go autoaway or come back from autoaway if we are not connected. See #8062
diffstat: src/gui_interface.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diffs (22 lines): diff -r bf9f8103b375 -r fc0e20d9098f src/gui_interface.py --- a/src/gui_interface.py Mon Jul 27 13:36:49 2015 +0200 +++ b/src/gui_interface.py Mon Jul 27 22:58:47 2015 +0200 @@ -2916,7 +2916,8 @@ def gnome_screensaver_ActiveChanged_cb(active): if not active: for account in gajim.connections: - if gajim.sleeper_state[account] == 'autoaway-forced': + if gajim.account_is_connected(account) and \ + gajim.sleeper_state[account] == 'autoaway-forced': # We came back online ofter gnome-screensaver # autoaway self.roster.send_status(account, 'online', @@ -2932,6 +2933,8 @@ not gajim.sleeper_state[account]: continue if gajim.sleeper_state[account] == 'online': + if not gajim.account_is_connected(account): + continue # we save out online status gajim.status_before_autoaway[account] = \ gajim.connections[account].status _______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits