From 2ea5f34a5691386a1485cc3db3520f8eb1f5c87e Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Mon, 22 Apr 2024 10:14:58 +0200 Subject: [PATCH] Removed leftover line --- src/EasyCaching.Core/DistributedLock/MemoryLock.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/EasyCaching.Core/DistributedLock/MemoryLock.cs b/src/EasyCaching.Core/DistributedLock/MemoryLock.cs index e5b4fbf3..c1d01f57 100644 --- a/src/EasyCaching.Core/DistributedLock/MemoryLock.cs +++ b/src/EasyCaching.Core/DistributedLock/MemoryLock.cs @@ -90,7 +90,6 @@ public virtual ValueTask ReleaseAsync() [MethodImpl(MethodImplOptions.AggressiveInlining)] private void LockFail() { - Interlocked.Exchange(ref _releaser, null); var semaphore = Interlocked.Exchange(ref _releaser, null); if (semaphore == null) return;