Change to locked
This commit is contained in:
@@ -49,7 +49,7 @@ func (dl *Downloader) DownloadFile(directory, torrentName, fileName string, resp
|
|||||||
// log.Debugf("Opening file %s from torrent %s (%s)", fileName, torMgr.GetKey(torrent), file.Link)
|
// log.Debugf("Opening file %s from torrent %s (%s)", fileName, torMgr.GetKey(torrent), file.Link)
|
||||||
if file.IsBroken {
|
if file.IsBroken {
|
||||||
if cfg.EnableRepair() {
|
if cfg.EnableRepair() {
|
||||||
http.Error(resp, "File is temporarily unavailable", http.StatusInternalServerError)
|
http.Error(resp, "File is temporarily unavailable", http.StatusLocked)
|
||||||
} else {
|
} else {
|
||||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user