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

fix del issue when unschedule scanning queue

This commit is contained in:
vincent 2021-06-11 20:40:18 +02:00
parent 9d34270227
commit aea8ebeb13

View File

@ -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]