try to prevent a major TB
This commit is contained in:
parent
f521185aa8
commit
9a5e49ac1c
2 changed files with 20 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue