use of in
This commit is contained in:
parent
4e31156bbd
commit
55e3a64f0b
|
@ -702,8 +702,7 @@ class Interface:
|
||||||
not gajim.sleeper_state[account]:
|
not gajim.sleeper_state[account]:
|
||||||
continue
|
continue
|
||||||
if state == common.sleepy.STATE_AWAKE and \
|
if state == common.sleepy.STATE_AWAKE and \
|
||||||
(gajim.sleeper_state[account] == 'autoaway' or \
|
gajim.sleeper_state[account] in ('autoaway', 'autoxa'):
|
||||||
gajim.sleeper_state[account] == 'autoxa'):
|
|
||||||
#we go online
|
#we go online
|
||||||
self.roster.send_status(account, 'online',
|
self.roster.send_status(account, 'online',
|
||||||
gajim.status_before_autoaway[account])
|
gajim.status_before_autoaway[account])
|
||||||
|
@ -869,7 +868,7 @@ class Interface:
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
if gajim.connections[account].connected:
|
if gajim.connections[account].connected:
|
||||||
gajim.connections[account].process(0.01)
|
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)
|
return True # renew timeout (loop for ever)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
Loading…
Reference in New Issue