Process background sync every 5 seconds

This commit is contained in:
tomkat83 2016-10-23 16:48:59 +02:00
parent 0b2ccde834
commit 18e6135afd

View file

@ -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