Add allowance for reinserts

This commit is contained in:
Ben Sarmiento
2024-01-17 07:09:51 +01:00
parent c12e2cc467
commit 49fd17c3d4

View File

@@ -346,7 +346,7 @@ func (t *TorrentManager) canCapacityHandle() bool {
continue
}
if count.DownloadingCount < count.MaxNumberOfTorrents {
if count.DownloadingCount < count.MaxNumberOfTorrents-1 {
return true
}
@@ -408,8 +408,8 @@ func (t *TorrentManager) handleRepairTorrents(info *Torrent) bool {
t.Api.DeleteTorrent(torrentID)
t.onlyForRepair.Remove(torrentID)
}
return true
}
return true
}
return false
}