make sure torrent was added in paused state to continue

This commit is contained in:
yggverse 2025-08-18 16:51:21 +03:00
parent 885d0ba5c1
commit 0332ec0788

View file

@ -129,6 +129,7 @@ async fn main() -> Result<()> {
{
Ok(r) => match r {
Ok(AddTorrentResponse::Added(id, mt)) => {
assert!(mt.is_paused());
let mut keep_files = HashSet::with_capacity(
config.preload_max_filecount.unwrap_or_default(),
);