Shutdown lib sync threads correctly on user switch

This commit is contained in:
tomkat83 2016-04-11 09:21:40 +02:00
parent 1b9297c9ba
commit adbeb4d48f

View file

@ -58,8 +58,8 @@ class ThreadedGetMetadata(Thread):
continue
else:
self.queue.task_done()
if utils.window('plex_terminateNow') == 'true':
# Extreme measures if Kodi shutdown requested
if self.threadStopped():
# Shutdown from outside requested; purge out_queue as well
while not self.out_queue.empty():
# Still try because remaining item might have been taken
try: