Add task api and resource locking ability

This commit is contained in:
Oliver Sauder authored and Lorenzo Bolla committed 2022-01-27 09:30:14 +01:00
1 parent e63d74dff2
commit 6ab5e60833
24 files changed
+1519 -620

No files matched your search

+3 -1
View File
@@ -266,7 +266,9 @@ func (downloader *downloaderImpl) download(req *http.Request, url, destination s
if err != nil {
if ignoreMismatch {
downloader.progress.Printf("WARNING: %s\n", err.Error())
if downloader.progress != nil {
downloader.progress.Printf("WARNING: %s\n", err.Error())
}
} else {
os.Remove(temppath)
return "", err