Make sure we're receiving valid item from the processing queue in case we should be aborting sync
This commit is contained in:
parent
a4a0b075bf
commit
73ffb706f8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue