Shutdown lib sync threads correctly on user switch
This commit is contained in:
parent
1b9297c9ba
commit
adbeb4d48f
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue