On same version content.json update dont add peer to optional files
This commit is contained in:
parent
fbfa0f3717
commit
7707c42a02
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ class FileRequest(object):
|
|||
(peer.key, len(site.worker_manager.tasks))
|
||||
)
|
||||
for task in site.worker_manager.tasks: # New peer add to every ongoing task
|
||||
if task["peers"]:
|
||||
if task["peers"] and not task["optional_hash_id"]:
|
||||
# Download file from this peer too if its peer locked
|
||||
site.needFile(task["inner_path"], peer=peer, update=True, blocking=False)
|
||||
|
||||
|
|
Loading…
Reference in a new issue