Quick fix for UserClient sleep

It was activating sleep while the initial scan was going. Changed to
allow sleep when the initial scan is not running.
This commit is contained in:
angelblue05 2015-04-04 04:32:11 -05:00
parent 3ed9024e61
commit 281b70da85
2 changed files with 9 additions and 5 deletions

View file

@ -93,12 +93,14 @@ class Service():
#full sync
if(cur_seconds_fullsync >= interval_FullSync):
xbmc.log("Doing_Db_Sync: syncDatabase (Started)")
self.WINDOW.setProperty("Server_sync", "true")
worked = librarySync.syncDatabase()
xbmc.log("Doing_Db_Sync: syncDatabase (Finished) " + str(worked))
if(worked):
cur_seconds_fullsync = 0
else:
cur_seconds_fullsync = interval_FullSync - 10
self.WINDOW.setProperty("Server_sync", "")
else:
cur_seconds_fullsync += 1