Dont check files on startup
This commit is contained in:
parent
d6cc40cf3b
commit
a12c639bed
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue