From 4e1f9756478c244fba7b9293b00c9d41f80b5722 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 9 Nov 2018 09:07:46 +0100 Subject: [PATCH] Fix ValueError for queue on Kodi exit --- 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 6daff7a4..c3f9fd55 100644 --- a/resources/lib/library_sync/process_metadata.py +++ b/resources/lib/library_sync/process_metadata.py @@ -86,6 +86,7 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin): item = self.queue.get() if isinstance(item, InitNewSection) or item is None: section = item + self.queue.task_done() break try: context.add_update(item['xml'][0], @@ -103,7 +104,6 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin): context.plexconn.commit() context.kodiconn.commit() self.queue.task_done() - self.queue.task_done() finally: if self.dialog: self.dialog.close()