Skip to content

Commit

Permalink
fix(client): Fix deadlock; candidate solution to hyperium#2312.
Browse files Browse the repository at this point in the history
  • Loading branch information
jevolk committed Mar 18, 2024
1 parent 98a7ab0 commit 56a64cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ impl<T: Poolable> Checkout<T> {
});

let (entry, empty) = if let Some((e, empty)) = maybe_entry {
(Some(e), empty)
(if empty { None } else { Some(e) }, empty)
} else {
// No entry found means nuke the list for sure.
(None, true)
Expand Down

0 comments on commit 56a64cf

Please sign in to comment.