Fix cleanup sites with no modified date

This commit is contained in:
shortcutme 2018-01-30 13:59:59 +01:00
parent ee30f78ab0
commit 97d1d0d63b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -274,7 +274,7 @@ class FileServer(ConnectionServer):
site.retryBadFiles()
if not startup: # Don't do it at start up because checkSite already has needConnections at start up.
if time.time() - site.settings.get("modified") < 60 * 60 * 24 * 7:
if time.time() - site.settings.get("modified", 0) < 60 * 60 * 24 * 7:
# Keep active connections if site has been modified witin 7 days
connected_num = site.needConnections(check_site_on_reconnect=True)