prevent a TB

This commit is contained in:
Yann Leboulanger 2005-07-18 22:39:59 +00:00
parent 5ba4093701
commit 73204c2d2c
1 changed files with 2 additions and 1 deletions

View File

@ -655,7 +655,8 @@ class Interface:
return True # renew timeout (loop for ever)
state = self.sleeper.getState()
for account in gajim.connections:
if not gajim.sleeper_state[account]:
if not gajim.sleeper_state.has_key(account) or \
not gajim.sleeper_state[account]:
continue
if state == common.sleepy.STATE_AWAKE and \
gajim.sleeper_state[account] > 1: