From 56a64cf0bae4118d5b276fbb0eeb68dc286db38b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 18 Mar 2024 03:20:11 -0700 Subject: [PATCH] fix(client): Fix deadlock; candidate solution to #2312. --- src/client/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pool.rs b/src/client/pool.rs index 1dfd6ba3d3..7aec8d6a96 100644 --- a/src/client/pool.rs +++ b/src/client/pool.rs @@ -624,7 +624,7 @@ impl Checkout { }); 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)