Master startup by waiting less between site update checks
This commit is contained in:
parent
620d8caea9
commit
a2da8eca68
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ class FileServer(ConnectionServer):
|
||||||
check_thread = gevent.spawn(self.checkSite, site, check_files) # Check in new thread
|
check_thread = gevent.spawn(self.checkSite, site, check_files) # Check in new thread
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
if site.settings.get("modified", 0) < time.time() - 60 * 60 * 24: # Not so active site, wait some sec to finish
|
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):
|
def cleanupSites(self):
|
||||||
import gc
|
import gc
|
||||||
|
|
Loading…
Reference in a new issue