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:
parent
756f83f2ab
commit
b024c352a1
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user