Merge pull request #254 from Mrreadiness/fix/transactional-pause
Fix: transactional pause
This commit is contained in:
commit
946ad36258
1 changed files with 1 additions and 2 deletions
|
|
@ -1365,8 +1365,7 @@ impl Session {
|
|||
}
|
||||
|
||||
pub async fn pause(&self, handle: &ManagedTorrentHandle) -> anyhow::Result<()> {
|
||||
handle.locked.write().paused = true;
|
||||
handle.pause()?;
|
||||
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