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)
|
if (lockAcquired)
|
||||||
lockObject.Release();
|
lockObject.Release();
|
||||||
|
|
||||||
_locks.TryRemove(lockObject, out _);
|
_locks.TryRemove(actualKey, out _);
|
||||||
|
|
||||||
if (throttlerAcquired)
|
if (throttlerAcquired)
|
||||||
_throttler.Release();
|
_throttler.Release();
|
||||||
|
|||||||
Reference in New Issue
Block a user