try to prevent a major TB

This commit is contained in:
Nikos Kouremenos 2005-08-16 11:35:14 +00:00
parent f521185aa8
commit 9a5e49ac1c
2 changed files with 20 additions and 17 deletions

View file

@ -756,6 +756,9 @@ timestamp, contact):
nb, line = gajim.logger.read(jid, count - 1 - pos, count - pos)
pos = pos + 1
print line
# line is [] if log file for jid is not a file (does not exist or dir)
if line != []:
if (now - float(line[0][0]))/60 >= time_out:
# stop looking for messages if we found something too old
break