mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 11:42:16 +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):
|
||||
with self.__cond:
|
||||
for path in self.__queue.keys():
|
||||
for path in list(self.__queue):
|
||||
if path.startswith(basepath):
|
||||
del self.__queue[path]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user