Rev2002, Fix exception on startworkers

This commit is contained in:
shortcutme 2017-03-12 22:14:24 +01:00
parent 7705cb1158
commit f55c2659cd
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.5.3"
self.rev = 1999
self.rev = 2002
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"

View file

@ -88,7 +88,7 @@ class WorkerManager(object):
self.startFindOptional(find_more=True)
elif task["peers"]:
if not self.workers:
self.startWorkers(peer for peer in task["peers"] if peer not in task["failed"])
self.startWorkers([peer for peer in task["peers"] if peer not in task["failed"]])
else:
if task["peers"]: # Release the peer lock
self.log.debug("Task peer lock release: %s" % task["inner_path"])