no need to specify content.json priority, its always downloaded first, peer broken after 3 hash failes, extra priority for css and js files

This commit is contained in:
HelloZeroNet 2015-01-14 22:57:43 +01:00
parent 776b572c82
commit bcd0c0025a
4 changed files with 22 additions and 17 deletions

View file

@ -189,7 +189,7 @@ class Site:
self.log.debug("Need content.json first")
self.announce()
if inner_path != "content.json": # Prevent double download
task = self.worker_manager.addTask("content.json", peer, priority=99999)
task = self.worker_manager.addTask("content.json", peer)
task.get()
self.loadContent()
if not self.content: return False