From 445da6a4c7cce900f12afc64985a52735aedd6d9 Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Mon, 27 Feb 2023 14:22:08 +0100 Subject: [PATCH] Fixed code to work exactly as the original. --- .../Abp/DistributedLocking/LocalAbpDistributedLock.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs index 77e583dcfa..d7c2dde2b1 100644 --- a/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs +++ b/framework/src/Volo.Abp.DistributedLocking.Abstractions/Volo/Abp/DistributedLocking/LocalAbpDistributedLock.cs @@ -28,11 +28,11 @@ public class LocalAbpDistributedLock : IAbpDistributedLock, ISingletonDependency Check.NotNullOrWhiteSpace(name, nameof(name)); var key = DistributedLockKeyNormalizer.NormalizeKey(name); - if (timeout == default) - { - var releaser = await _localSyncObjects.LockAsync(key, cancellationToken); - return new LocalAbpDistributedLockHandle(releaser); - } + //if (timeout == default) + //{ + // var releaser = await _localSyncObjects.LockAsync(key, cancellationToken); + // return new LocalAbpDistributedLockHandle(releaser); + //} var timeoutReleaser = await _localSyncObjects.LockAsync(key, timeout, cancellationToken); if (!timeoutReleaser.EnteredSemaphore)