Fix ValueError for queue on Kodi exit

This commit is contained in:
croneter 2018-11-09 09:07:46 +01:00
parent 0b81fcd39c
commit 4e1f975647

View file

@ -86,6 +86,7 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin):
item = self.queue.get() item = self.queue.get()
if isinstance(item, InitNewSection) or item is None: if isinstance(item, InitNewSection) or item is None:
section = item section = item
self.queue.task_done()
break break
try: try:
context.add_update(item['xml'][0], context.add_update(item['xml'][0],
@ -103,7 +104,6 @@ class ProcessMetadata(backgroundthread.KillableThread, common.libsync_mixin):
context.plexconn.commit() context.plexconn.commit()
context.kodiconn.commit() context.kodiconn.commit()
self.queue.task_done() self.queue.task_done()
self.queue.task_done()
finally: finally:
if self.dialog: if self.dialog:
self.dialog.close() self.dialog.close()