Fix onComplete call when donwload end
This commit is contained in:
parent
20ba9cd589
commit
8de1714f08
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ class Site(object):
|
|||
if config.verbose:
|
||||
self.log.debug("%s: DownloadContent ended in %.3fs" % (inner_path, time.time() - s))
|
||||
|
||||
if not self.worker_manager.tasks:
|
||||
if len(self.worker_manager.tasks) == 0:
|
||||
self.onComplete() # No more task trigger site complete
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue