Skip to content

Commit

Permalink
Merge pull request #254 from Mrreadiness/fix/transactional-pause
Browse files Browse the repository at this point in the history
Fix: transactional pause
  • Loading branch information
ikatson authored Oct 12, 2024
2 parents 7147313 + be9716e commit 946ad36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/librqbit/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 946ad36

Please sign in to comment.