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)
|
window('plex_dbScan', clear=True)
|
||||||
elif enableBackgroundSync:
|
elif enableBackgroundSync:
|
||||||
# Check back whether we should process something
|
# Check back whether we should process something
|
||||||
# Only do this once every 10 seconds
|
# Only do this once every while (otherwise, potentially
|
||||||
if now - lastProcessing > 10:
|
# many screen refreshes lead to flickering)
|
||||||
|
if now - lastProcessing > 5:
|
||||||
lastProcessing = now
|
lastProcessing = now
|
||||||
processItems()
|
processItems()
|
||||||
# See if there is a PMS message we need to handle
|
# See if there is a PMS message we need to handle
|
||||||
|
|
Loading…
Reference in a new issue