Skip to content

Commit a0c2f4b

Browse files
authored
Fix typo in handle cache lookup (#2604)
1 parent 972f3f0 commit a0c2f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/cache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Base.pop!(cache::HandleCache{K,V}, key::K) where {K,V}
4040
if handle === nothing && num_active_handles > cache.max_entries
4141
GC.gc(false)
4242
@lock cache.lock begin
43-
if haskey(cache.idle_handles, key) && isempty(cache.idle_handles[key])
43+
if haskey(cache.idle_handles, key) && !isempty(cache.idle_handles[key])
4444
handle = pop!(cache.idle_handles[key])
4545
end
4646
end

0 commit comments

Comments
 (0)