mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-05 15:56:14 +00:00
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:
parent
3ed9024e61
commit
281b70da85
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue