fix: task can not completed (#280)

This commit is contained in:
Levi authored and GitHub committed 2023-11-28 18:27:36 +08:00
1 parent bba5107dd5
commit 7d6428c967
3 files changed
+51 -5

No files matched your search

+2
View File
@@ -635,6 +635,8 @@ func (d *Downloader) restoreFetcher(task *Task) error {
task.fetcher.Meta().Res = task.Meta.Res
}
go d.watch(task)
} else if task.Status == base.DownloadStatusError {
go d.watch(task)
}
task.fetcher.Create(task.Meta.Opts)
return nil