Fixed removing locked object.

This commit is contained in:
2026-07-26 17:06:33 -04:00
parent 63938b0139
commit 3fd9e8a00c

View File

@@ -60,7 +60,7 @@ public abstract class Cache<TKey, TValue> : ICache<TKey, TValue> where TKey : no
if (lockAcquired)
lockObject.Release();
_locks.TryRemove(lockObject, out _);
_locks.TryRemove(actualKey, out _);
if (throttlerAcquired)
_throttler.Release();