Skip to content

Commit

Permalink
Fixed null reference with AsyncDisposableAction
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Dec 23, 2024
1 parent 6da2501 commit 32b41e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundatio/Utility/AsyncDisposableAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ async ValueTask IAsyncDisposable.DisposeAsync()
{
var exitAction = Interlocked.Exchange(ref _exitTask, null);
if (exitAction is not null)
await _exitTask().AnyContext();
await exitAction().AnyContext();
}
}

0 comments on commit 32b41e8

Please sign in to comment.