diff --git a/internal/torrent/repair.go b/internal/torrent/repair.go index 17704d3..51c60c6 100644 --- a/internal/torrent/repair.go +++ b/internal/torrent/repair.go @@ -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 }