Added --exit-on-download option, only works without the server so far
This commit is contained in:
parent
af30affb37
commit
a800048b7e
4 changed files with 37 additions and 7 deletions
|
|
@ -140,9 +140,8 @@ impl TorrentManagerHandle {
|
|||
todo!()
|
||||
}
|
||||
pub async fn wait_until_completed(&self) -> anyhow::Result<()> {
|
||||
loop {
|
||||
tokio::time::sleep(Duration::from_secs(60)).await;
|
||||
}
|
||||
self.manager.state.wait_until_completed().await;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue