diff --git a/src/main.rs b/src/main.rs index d604075..a77a24c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -190,10 +190,12 @@ async fn main() -> Result<()> { keep_files.len() ); preload.commit(&i, bytes, Some(keep_files))?; - // remove torrent from session as indexed - session - .delete(librqbit::api::TorrentIdOrHash::Id(id), false) - .await?; + // remove torrent from the session as indexed + if !config.enable_upload { + session + .delete(librqbit::api::TorrentIdOrHash::Id(id), false) + .await?; + } log::debug!("torrent `{i}` resolved.") } Ok(_) => panic!(),