Repair enqueque
This commit is contained in:
@@ -69,7 +69,7 @@ func (dl *Downloader) DownloadFile(
|
||||
http.Error(resp, "File is stale, please try again", http.StatusLocked)
|
||||
return
|
||||
}
|
||||
torMgr.TriggerRepair(torrent)
|
||||
torMgr.EnqueueForRepair(torrent)
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
return
|
||||
} else {
|
||||
@@ -155,7 +155,7 @@ func (dl *Downloader) streamFileToResponse(
|
||||
http.Error(resp, "File is stale, please try again", http.StatusLocked)
|
||||
return
|
||||
}
|
||||
torMgr.TriggerRepair(torrent)
|
||||
torMgr.EnqueueForRepair(torrent)
|
||||
}
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
return
|
||||
@@ -171,7 +171,7 @@ func (dl *Downloader) streamFileToResponse(
|
||||
http.Error(resp, "File is stale, please try again", http.StatusLocked)
|
||||
return
|
||||
}
|
||||
torMgr.TriggerRepair(torrent)
|
||||
torMgr.EnqueueForRepair(torrent)
|
||||
}
|
||||
http.Error(resp, "File is not available", http.StatusNotFound)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user