Don't delete connecting sites at startup

This commit is contained in:
shortcutme 2018-10-15 12:59:04 +02:00
parent 6a240919bf
commit f74ddc1010
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

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