Rigorous fix check

This commit is contained in:
Ben Sarmiento
2024-01-26 22:51:08 +01:00
parent 979151d2de
commit 52046cb3db
3 changed files with 8 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ func (t *TorrentManager) getUncachedTorrents() ([]*Torrent, error) {
hashGroups = append(hashGroups, currentGroup)
allTorrents.IterCb(func(_ string, torrent *Torrent) {
if torrent.AnyInProgress() || torrent.UnrepairableReason != "" {
if torrent.AnyInProgress() || torrent.AllInProgress() || torrent.UnrepairableReason != "" {
return
}
@@ -46,7 +46,7 @@ func (t *TorrentManager) getUncachedTorrents() ([]*Torrent, error) {
var uncachedTorrents []*Torrent
allTorrents.IterCb(func(_ string, torrent *Torrent) {
if torrent.AnyInProgress() || torrent.UnrepairableReason != "" {
if torrent.AnyInProgress() || torrent.AllInProgress() || torrent.UnrepairableReason != "" {
return
}