Docs for _start()
This commit is contained in:
parent
38fec48879
commit
5f07872725
2 changed files with 8 additions and 3 deletions
|
|
@ -1336,9 +1336,7 @@ impl Session {
|
|||
}
|
||||
|
||||
pub async fn pause(&self, handle: &ManagedTorrentHandle) -> anyhow::Result<()> {
|
||||
handle
|
||||
.pause()
|
||||
.map(|_| handle.locked.write().paused = true)?;
|
||||
handle.pause()?;
|
||||
self.try_update_persistence_metadata(handle).await;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue