Skip to content

Commit

Permalink
Fix for deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
bitc0der committed Nov 8, 2024
1 parent 76fc861 commit 60775d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncTools/WaitHandleExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static Task WaitAsync(
continuationFunction: result =>
{
rwh.Unregister(null);
return !ctr.Token.CanBeCanceled || ctr.Unregister();
return !cancellationToken.CanBeCanceled || ctr.Unregister();
},
continuationOptions: TaskContinuationOptions.ExecuteSynchronously
);
Expand Down

0 comments on commit 60775d2

Please sign in to comment.