Skip to content

Commit 4ba8118

Browse files
committed
feat: 取消處置時執行Cancellation.Cancel
1 parent 94e51aa commit 4ba8118

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Netcorext.Extensions.Threading.Locker/KeyLocker.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ private void CleanupIdleLocks(object? state)
234234

235235
if (!_locks.TryRemove(key, out var keyState)) continue;
236236

237-
keyState.Cancellation.Cancel();
238237
keyState.Semaphore.Dispose();
239238
}
240239
}
@@ -265,7 +264,6 @@ public void Dispose()
265264
{
266265
try
267266
{
268-
keyState.Cancellation.Cancel();
269267
keyState.Semaphore.Dispose();
270268
}
271269
catch (Exception ex)

0 commit comments

Comments
 (0)