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 continue
else: else:
self.queue.task_done() self.queue.task_done()
if utils.window('plex_terminateNow') == 'true': if self.threadStopped():
# Extreme measures if Kodi shutdown requested # Shutdown from outside requested; purge out_queue as well
while not self.out_queue.empty(): while not self.out_queue.empty():
# Still try because remaining item might have been taken # Still try because remaining item might have been taken
try: try: