Add allowance for reinserts
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user