Process background sync every 5 seconds
This commit is contained in:
parent
0b2ccde834
commit
18e6135afd
1 changed files with 3 additions and 2 deletions
|
@ -1847,8 +1847,9 @@ class LibrarySync(Thread):
|
|||
window('plex_dbScan', clear=True)
|
||||
elif enableBackgroundSync:
|
||||
# Check back whether we should process something
|
||||
# Only do this once every 10 seconds
|
||||
if now - lastProcessing > 10:
|
||||
# Only do this once every while (otherwise, potentially
|
||||
# many screen refreshes lead to flickering)
|
||||
if now - lastProcessing > 5:
|
||||
lastProcessing = now
|
||||
processItems()
|
||||
# See if there is a PMS message we need to handle
|
||||
|
|
Loading…
Reference in a new issue