Prevent sleep

Remove flag if initial sync terminates prematurely
This commit is contained in:
angelblue05 2016-02-21 17:45:56 -06:00
parent 6100faadda
commit 20ca36d95a

View file

@ -279,7 +279,7 @@ class LibrarySync(threading.Thread):
startTime = datetime.now()
completed = process[itemtype](embycursor, kodicursor, pDialog)
if not completed:
xbmc.executebuiltin('InhibitIdleShutdown(false)')
window('emby_dbScan', clear=True)
if pDialog:
pDialog.close()
@ -306,7 +306,7 @@ class LibrarySync(threading.Thread):
startTime = datetime.now()
completed = self.music(embycursor, musiccursor, pDialog)
if not completed:
xbmc.executebuiltin('InhibitIdleShutdown(false)')
window('emby_dbScan', clear=True)
if pDialog:
pDialog.close()