Docs for _start()

This commit is contained in:
Igor Katson 2024-12-06 12:14:34 +00:00
parent 38fec48879
commit 5f07872725
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 8 additions and 3 deletions

View file

@ -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(())
}