Re-add else condition
This commit is contained in:
@@ -224,8 +224,7 @@ func (t *TorrentManager) repair(torrent *Torrent) {
|
||||
info, err := t.redownloadTorrent(torrent, "")
|
||||
if err != nil {
|
||||
t.log.Warnf("Cannot repair torrent %s", t.GetKey(torrent))
|
||||
}
|
||||
if info.Progress != 100 || (info.Progress == 100 && !t.isStillBroken(info, brokenFiles)) {
|
||||
} else if info.Progress != 100 || (info.Progress == 100 && !t.isStillBroken(info, brokenFiles)) {
|
||||
t.log.Infof("Successfully repaired torrent %s", t.GetKey(torrent))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user