From 73ffb706f8ac8e637f1ab8a1cfcd045c3c6342c6 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 15 Feb 2020 17:12:46 +0100 Subject: [PATCH] Make sure we're receiving valid item from the processing queue in case we should be aborting sync --- resources/lib/library_sync/process_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/library_sync/process_metadata.py b/resources/lib/library_sync/process_metadata.py index cddcd20f..0d573965 100644 --- a/resources/lib/library_sync/process_metadata.py +++ b/resources/lib/library_sync/process_metadata.py @@ -52,7 +52,7 @@ class ProcessMetadataThread(common.LibrarySyncMixin, def _get(self): item = {'xml': None} - while not self.should_cancel() and item and item['xml'] is None: + while item and item['xml'] is None: item = self.processing_queue.get() self.processing_queue.task_done() return item