Skip to content

Commit

Permalink
Fix fhirtimer crashing on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankowitz committed May 1, 2024
1 parent 8039c58 commit ccc4014
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ protected async Task StartAsync(double periodSec, CancellationToken cancellation

private async Task RunInternalAsync()
{
_cancellationToken.ThrowIfCancellationRequested();

if (_isRunning)
if (_isRunning || _cancellationToken.IsCancellationRequested)
{
return;
}
Expand Down

0 comments on commit ccc4014

Please sign in to comment.