Reduce connection requirements on startup

This commit is contained in:
shortcutme 2018-08-29 19:55:04 +02:00
parent 3a9ded9315
commit b96559b76f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -257,8 +257,6 @@ class FileServer(ConnectionServer):
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
site.sendMyHashfield() site.sendMyHashfield()
site.updateHashfield() site.updateHashfield()
if len(site.peers) > 5: # Keep active connections if site having 5 or more peers
site.needConnections()
# Check sites integrity # Check sites integrity
@util.Noparallel() @util.Noparallel()