mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-13 21:52:18 +00:00
fix del issue when unschedule scanning queue
This commit is contained in:
parent
9d34270227
commit
aea8ebeb13
@ -227,7 +227,7 @@ class ScannerProcessingQueue(Thread):
|
|||||||
|
|
||||||
def unschedule_paths(self, basepath):
|
def unschedule_paths(self, basepath):
|
||||||
with self.__cond:
|
with self.__cond:
|
||||||
for path in self.__queue.keys():
|
for path in list(self.__queue):
|
||||||
if path.startswith(basepath):
|
if path.startswith(basepath):
|
||||||
del self.__queue[path]
|
del self.__queue[path]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user