From aea8ebeb13357a24756f8597ea781cc9c8b8c8a6 Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 11 Jun 2021 20:40:18 +0200 Subject: [PATCH] fix del issue when unschedule scanning queue --- supysonic/watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supysonic/watcher.py b/supysonic/watcher.py index 24a6add..4259025 100644 --- a/supysonic/watcher.py +++ b/supysonic/watcher.py @@ -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]