Only recover sites from sites.json that had peers
This commit is contained in:
parent
866947c445
commit
e1dd0f0979
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class SiteManager(object):
|
||||||
self.sites[address] = site
|
self.sites[address] = site
|
||||||
self.log.debug("Loaded site %s in %.3fs" % (address, time.time() - s))
|
self.log.debug("Loaded site %s in %.3fs" % (address, time.time() - s))
|
||||||
added += 1
|
added += 1
|
||||||
elif startup:
|
elif startup and settings.get("peers", 0) > 0:
|
||||||
# No site directory, start download
|
# No site directory, start download
|
||||||
self.log.debug("Found new site in sites.json: %s" % address)
|
self.log.debug("Found new site in sites.json: %s" % address)
|
||||||
gevent.spawn(self.need, address, settings=settings)
|
gevent.spawn(self.need, address, settings=settings)
|
||||||
|
|
Loading…
Reference in a new issue