Skip to content

Commit 8bd4945

Browse files
committed
Corrected UnRegister result notification destination to null.
1 parent f402f92 commit 8bd4945

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AsyncFiberWorksTests/TimerPrecisionTests.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ await BenchmarkTimerAccuracy((fiber, action) =>
441441
if (cancellation.IsCancellationRequested)
442442
{
443443
var handle = handleList[0];
444-
handle.Unregister(manualResetEvent.WaitHandle);
444+
handle.Unregister(null);
445445
manualResetEvent.Dispose();
446446
}
447447
else
@@ -504,7 +504,7 @@ await BenchmarkTimerAccuracy((fiber, action) =>
504504
if (cancellation.IsCancellationRequested)
505505
{
506506
var handle = handleList[0];
507-
handle.Unregister(waitableTimer);
507+
handle.Unregister(null);
508508
waitableTimer.Dispose();
509509
}
510510
else
@@ -569,7 +569,7 @@ await BenchmarkTimerAccuracy((fiber, action) =>
569569
if (cancellation.IsCancellationRequested)
570570
{
571571
var handle = handleList[0];
572-
handle.Unregister(waitableTimer);
572+
handle.Unregister(null);
573573
waitableTimer.Dispose();
574574
}
575575
else

0 commit comments

Comments
 (0)