fmt
This commit is contained in:
parent
6d08173159
commit
bac364760e
2 changed files with 7 additions and 4 deletions
|
|
@ -1365,7 +1365,9 @@ impl Session {
|
|||
}
|
||||
|
||||
pub async fn pause(&self, handle: &ManagedTorrentHandle) -> anyhow::Result<()> {
|
||||
handle.pause().map(|_| handle.locked.write().paused = true)?;
|
||||
handle
|
||||
.pause()
|
||||
.map(|_| handle.locked.write().paused = true)?;
|
||||
self.try_update_persistence_metadata(handle).await;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue