Inhibit idle shutdown only during initial sync

This commit is contained in:
croneter 2018-02-15 17:47:45 +01:00
parent 9f8c9a1636
commit 9e2ff58bc7

View file

@ -1575,7 +1575,9 @@ class LibrarySync(Thread):
delete_playlists()
delete_nodes()
log.info("Initial start-up full sync starting")
xbmc.executebuiltin('InhibitIdleShutdown(true)')
librarySync = fullSync()
xbmc.executebuiltin('InhibitIdleShutdown(false)')
window('plex_dbScan', clear=True)
state.DB_SCAN = False
if librarySync: