List broken files but dont serve them
This commit is contained in:
@@ -193,10 +193,7 @@ func (t *TorrentManager) repair(torrent *Torrent, wg *sync.WaitGroup) {
|
||||
bwLimitReached := false
|
||||
// check for other broken file
|
||||
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
||||
if bwLimitReached {
|
||||
return
|
||||
}
|
||||
if !file.State.Is("ok_file") {
|
||||
if bwLimitReached || !file.State.Is("ok_file") {
|
||||
return
|
||||
}
|
||||
_, err := t.UnrestrictFile(file, true)
|
||||
|
||||
Reference in New Issue
Block a user