Fix onComplete call when donwload end

This commit is contained in:
shortcutme 2019-12-17 14:31:12 +01:00
parent 20ba9cd589
commit 8de1714f08
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -273,7 +273,7 @@ class Site(object):
if config.verbose: if config.verbose:
self.log.debug("%s: DownloadContent ended in %.3fs" % (inner_path, time.time() - s)) 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 self.onComplete() # No more task trigger site complete
return True return True