This commit is contained in:
Nikos Kouremenos 2005-09-08 14:48:41 +00:00
parent 58df926934
commit 1789db7dde
1 changed files with 5 additions and 4 deletions

View File

@ -419,8 +419,9 @@ timestamp, contact):
in the last 5 seconds? in the last 5 seconds?
if yes we go active for mouse, composing for kbd if yes we go active for mouse, composing for kbd
if no we go paused if we were previously composing ''' if no we go paused if we were previously composing '''
if jid not in self.xmls: if jid not in self.xmls or contact is None:
# the tab with jid is no longer open. stop timer # the tab with jid is no longer open or contact left
# stop timer
return False # stop looping return False # stop looping
# FIXME: Why don't we just pass contact? # FIXME: Why don't we just pass contact?
@ -450,8 +451,8 @@ timestamp, contact):
in the last 30 seconds? in the last 30 seconds?
if yes we go active if yes we go active
if no we go inactive ''' if no we go inactive '''
if jid not in self.xmls: if jid not in self.xmls or contact is None:
# the tab with jid is no longer open. stop timer # the tab with jid is no longer open or contact left
return False # stop looping return False # stop looping
# FIXME: Why don't we just pass contact? # FIXME: Why don't we just pass contact?