Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2015-07-27 23:58:47 +0300
committerYann Leboulanger <asterix@lagaule.org>2015-07-27 23:58:47 +0300
commit96f642b309d0690b2112c3c7473cb8c98ea2c190 (patch)
treea314a2d5c87613ebe6d4cfb7162e119d53d6d291 /src/gui_interface.py
parent42cec3e7f2302c363b1624c1c25ffc6579c89be3 (diff)
do not try to go autoaway or come back from autoaway if we are not connected. See #8062
Diffstat (limited to 'src/gui_interface.py')
-rw-r--r--src/gui_interface.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_interface.py b/src/gui_interface.py
index 4da0968f1..652e7c13a 100644
--- a/src/gui_interface.py
+++ b/src/gui_interface.py
@@ -2916,7 +2916,8 @@ class Interface:
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 @@ class Interface:
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