Only recover sites from sites.json that had peers

This commit is contained in:
shortcutme 2018-02-08 18:04:41 +01:00
parent 866947c445
commit e1dd0f0979
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -47,7 +47,7 @@ class SiteManager(object):
self.sites[address] = site
self.log.debug("Loaded site %s in %.3fs" % (address, time.time() - s))
added += 1
elif startup:
elif startup and settings.get("peers", 0) > 0:
# No site directory, start download
self.log.debug("Found new site in sites.json: %s" % address)
gevent.spawn(self.need, address, settings=settings)