diff --git a/src/FreeRedis/RedisClient/Modules/Lock.cs b/src/FreeRedis/RedisClient/Modules/Lock.cs index 2de02fd..8c9623c 100644 --- a/src/FreeRedis/RedisClient/Modules/Lock.cs +++ b/src/FreeRedis/RedisClient/Modules/Lock.cs @@ -57,7 +57,7 @@ public LockController Lock(string name, int timeoutSeconds, int refrshTimeoutSec { return new LockController(this, name, value, timeoutSeconds, refrshTimeoutSeconds, autoDelay, token); } - + if (token.IsCancellationRequested) return null; Thread.CurrentThread.Join(millisecondsTimeout: 3); } return null;