Make sure we're receiving valid item from the processing queue in case we should be aborting sync

This commit is contained in:
croneter 2020-02-15 17:12:46 +01:00
parent a4a0b075bf
commit 73ffb706f8

View file

@ -52,7 +52,7 @@ class ProcessMetadataThread(common.LibrarySyncMixin,
def _get(self): def _get(self):
item = {'xml': None} 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() item = self.processing_queue.get()
self.processing_queue.task_done() self.processing_queue.task_done()
return item return item