1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-14 14:12:17 +00:00

A wild timing error appears!

This commit is contained in:
spl0k 2014-09-06 19:47:56 +02:00
parent 756f83f2ab
commit b024c352a1

View File

@ -192,7 +192,7 @@ class ScannerProcessingQueue(Thread):
return None return None
next = min(self.__queue.iteritems(), key = lambda i: i[1].time) next = min(self.__queue.iteritems(), key = lambda i: i[1].time)
if not self.__running or next[1].time + 5 < time.time(): if not self.__running or next[1].time + 5 <= time.time():
del self.__queue[next[0]] del self.__queue[next[0]]
return next[1] return next[1]