Do not repair if download error, just retry from client side

This commit is contained in:
Ben Adrian Sarmiento
2024-08-25 13:48:01 +02:00
parent 54230c9eaa
commit 78be877efe
3 changed files with 10 additions and 42 deletions

View File

@@ -396,7 +396,7 @@ func (hs *Handlers) handleDownloadLink(resp http.ResponseWriter, req *http.Reque
filename = chi.URLParam(req, "filename")
}
if download, ok := hs.torMgr.DownloadMap.Get(filename); ok {
hs.downloader.DownloadLink(download, resp, req, hs.torMgr, hs.cfg, hs.log)
hs.downloader.DownloadLink(download, resp, req, hs.cfg, hs.log)
} else {
http.NotFound(resp, req)
}