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