Fixed removing locked object.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user