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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue