Add allowance for reinserts
This commit is contained in:
@@ -346,7 +346,7 @@ func (t *TorrentManager) canCapacityHandle() bool {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if count.DownloadingCount < count.MaxNumberOfTorrents {
|
if count.DownloadingCount < count.MaxNumberOfTorrents-1 {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -408,8 +408,8 @@ func (t *TorrentManager) handleRepairTorrents(info *Torrent) bool {
|
|||||||
t.Api.DeleteTorrent(torrentID)
|
t.Api.DeleteTorrent(torrentID)
|
||||||
t.onlyForRepair.Remove(torrentID)
|
t.onlyForRepair.Remove(torrentID)
|
||||||
}
|
}
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user