From 20ca36d95a1cf6685201667f30f0ed7044ea4e8d Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 21 Feb 2016 17:45:56 -0600 Subject: [PATCH] Prevent sleep Remove flag if initial sync terminates prematurely --- resources/lib/librarysync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 20d8ff17..b590129f 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -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()