changeset 7aa8b24aa913 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gajim_0.16 details:http://hg.gajim.org/gajim?cmd=changeset;node=7aa8b24aa913 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 312de2800974 -r 7aa8b24aa913 src/gui_interface.py --- a/src/gui_interface.py Mon Jul 27 21:19:25 2015 +0200 +++ b/src/gui_interface.py Mon Jul 27 22:58:47 2015 +0200 @@ -2936,7 +2936,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', @@ -2952,6 +2953,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