Skip to content

Commit

Permalink
Fixed thread check
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jan 20, 2025
1 parent 3bc8c16 commit 804eeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotNext.Threading/Threading/AsyncExclusiveLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public bool TryAcquire()

private bool IsLockHelpByCurrentThread
{
get => lockOwner is not { } owner || ReferenceEquals(owner, Thread.CurrentThread);
get => lockOwner is { } owner && ReferenceEquals(owner, Thread.CurrentThread);
set
{
if (value)
Expand Down

0 comments on commit 804eeba

Please sign in to comment.