From 7328d3f0591978a0253b2c4f085d7e6f27282d74 Mon Sep 17 00:00:00 2001 From: jarbus <42819002+jarbus@users.noreply.github.com> Date: Tue, 24 Dec 2024 19:47:34 -0500 Subject: [PATCH] Update cache.jl This seemed like a bug --- lib/utils/cache.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/cache.jl b/lib/utils/cache.jl index 0abf92a436..9a7da297f5 100644 --- a/lib/utils/cache.jl +++ b/lib/utils/cache.jl @@ -40,7 +40,7 @@ function Base.pop!(cache::HandleCache{K,V}, key::K) where {K,V} if handle === nothing && num_active_handles > cache.max_entries GC.gc(false) @lock cache.lock begin - if haskey(cache.idle_handles, key) && isempty(cache.idle_handles[key]) + if haskey(cache.idle_handles, key) && !isempty(cache.idle_handles[key]) handle = pop!(cache.idle_handles[key]) end end