Dont check files on startup

This commit is contained in:
shortcutme 2016-09-04 17:51:00 +02:00
parent d6cc40cf3b
commit a12c639bed

View file

@ -165,7 +165,7 @@ class FileServer(ConnectionServer):
self.port_opened = True self.port_opened = True
# Check site file integrity # Check site file integrity
def checkSite(self, site, check_files=True): def checkSite(self, site, check_files=False):
if site.settings["serving"]: if site.settings["serving"]:
site.announce(mode="startup") # Announce site to tracker site.announce(mode="startup") # Announce site to tracker
site.update(check_files=check_files) # Update site's content.json and download changed files site.update(check_files=check_files) # Update site's content.json and download changed files
@ -176,7 +176,7 @@ class FileServer(ConnectionServer):
# Check sites integrity # Check sites integrity
@util.Noparallel() @util.Noparallel()
def checkSites(self, check_files=True, force_port_check=False): def checkSites(self, check_files=False, force_port_check=False):
self.log.debug("Checking sites...") self.log.debug("Checking sites...")
sites_checking = False sites_checking = False
if self.port_opened is None or force_port_check: # Test and open port if not tested yet if self.port_opened is None or force_port_check: # Test and open port if not tested yet