Code optimization

This commit is contained in:
croneter 2017-08-19 16:14:14 +02:00
parent 0d108577ab
commit 3daf82ef3d

View file

@ -296,11 +296,7 @@ class LibrarySync(Thread):
# Do the processing
for itemtype in process:
if self.thread_stopped():
xbmc.executebuiltin('InhibitIdleShutdown(false)')
setScreensaver(value=screensaver)
return False
if not process[itemtype]():
if self.thread_stopped() or not process[itemtype]():
xbmc.executebuiltin('InhibitIdleShutdown(false)')
setScreensaver(value=screensaver)
return False