Skip to content
Snippets Groups Projects
Commit 55e3a64f authored by nkour's avatar nkour
Browse files

use of in

parent 4e31156b
No related branches found
No related tags found
No related merge requests found
......@@ -702,8 +702,7 @@ class Interface:
not gajim.sleeper_state[account]:
continue
if state == common.sleepy.STATE_AWAKE and \
(gajim.sleeper_state[account] == 'autoaway' or \
gajim.sleeper_state[account] == 'autoxa'):
gajim.sleeper_state[account] in ('autoaway', 'autoxa'):
#we go online
self.roster.send_status(account, 'online',
gajim.status_before_autoaway[account])
......@@ -869,7 +868,7 @@ class Interface:
for account in accounts:
if gajim.connections[account].connected:
gajim.connections[account].process(0.01)
time.sleep(0.01) # threads in connection.py have time to run
time.sleep(0.01) # so threads in connection.py have time to run
return True # renew timeout (loop for ever)
except KeyboardInterrupt:
sys.exit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment