Code optimization
This commit is contained in:
parent
0d108577ab
commit
3daf82ef3d
1 changed files with 1 additions and 5 deletions
|
@ -296,11 +296,7 @@ class LibrarySync(Thread):
|
||||||
|
|
||||||
# Do the processing
|
# Do the processing
|
||||||
for itemtype in process:
|
for itemtype in process:
|
||||||
if self.thread_stopped():
|
if self.thread_stopped() or not process[itemtype]():
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
|
||||||
setScreensaver(value=screensaver)
|
|
||||||
return False
|
|
||||||
if not process[itemtype]():
|
|
||||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||||
setScreensaver(value=screensaver)
|
setScreensaver(value=screensaver)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue