Do not reprocess unrepairable torrents
This commit is contained in:
@@ -46,6 +46,10 @@ func (t *TorrentManager) getUncachedTorrents() ([]*Torrent, error) {
|
|||||||
|
|
||||||
var uncachedTorrents []*Torrent
|
var uncachedTorrents []*Torrent
|
||||||
allTorrents.IterCb(func(_ string, torrent *Torrent) {
|
allTorrents.IterCb(func(_ string, torrent *Torrent) {
|
||||||
|
if torrent.AnyInProgress() || torrent.UnrepairableReason != "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if _, ok := availabilityChecks[torrent.Hash]; !ok || !availabilityChecks[torrent.Hash] {
|
if _, ok := availabilityChecks[torrent.Hash]; !ok || !availabilityChecks[torrent.Hash] {
|
||||||
uncachedTorrents = append(uncachedTorrents, torrent)
|
uncachedTorrents = append(uncachedTorrents, torrent)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user