We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e871689 commit edccebcCopy full SHA for edccebc
1 file changed
crates/pet-windows-registry/src/lib.rs
@@ -169,7 +169,14 @@ impl Locator for WindowsRegistry {
169
// cache here would let a later `find(reporter)` short-circuit
170
// on the cache hit and silently drop those conda
171
// notifications (issue #454).
172
- if let Some((cached, _did_walk)) = self.find_with_cache(None) {
+ let cached = {
173
+ let result = self
174
+ .search_result
175
+ .lock()
176
+ .expect("search_result mutex poisoned");
177
+ result.as_ref().map(Arc::clone)
178
+ };
179
+ if let Some(cached) = cached {
180
for found_env in &cached.result.environments {
181
if let Some(ref python_executable_path) = found_env.executable {
182
if python_executable_path == &env.executable {
0 commit comments