Skip to content

Commit

Permalink
Cancel CancellationTokenSource
Browse files Browse the repository at this point in the history
  • Loading branch information
ImoutoChan committed Apr 30, 2024
1 parent b9586e7 commit d9904bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Offloader/Implementation/OffloadHostedService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ private async Task ProcessSingleItemAsync(T item, CancellationToken ct)
public Task StopAsync(CancellationToken cancellationToken)
{
_offload.Complete();
_cancellationTokenSource?.Cancel();

return Task.CompletedTask;
}
}

0 comments on commit d9904bc

Please sign in to comment.