Master startup by waiting less between site update checks

This commit is contained in:
shortcutme 2017-11-19 18:18:26 +01:00
parent 620d8caea9
commit a2da8eca68
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -241,7 +241,7 @@ class FileServer(ConnectionServer):
check_thread = gevent.spawn(self.checkSite, site, check_files) # Check in new thread
time.sleep(2)
if site.settings.get("modified", 0) < time.time() - 60 * 60 * 24: # Not so active site, wait some sec to finish
check_thread.join(timeout=10)
check_thread.join(timeout=5)
def cleanupSites(self):
import gc