Skip to content

Commit 804eeba

Browse files
committed
Fixed thread check
1 parent 3bc8c16 commit 804eeba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNext.Threading/Threading/AsyncExclusiveLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public bool TryAcquire()
8787

8888
private bool IsLockHelpByCurrentThread
8989
{
90-
get => lockOwner is not { } owner || ReferenceEquals(owner, Thread.CurrentThread);
90+
get => lockOwner is { } owner && ReferenceEquals(owner, Thread.CurrentThread);
9191
set
9292
{
9393
if (value)

0 commit comments

Comments
 (0)