Skip to content

Commit 93c5d58

Browse files
committed
Cleanly handle OperationCanceledException
1 parent 70dd7d2 commit 93c5d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Refresher.Core/Pipelines/Pipeline.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private async Task<bool> RunListOfSteps(List<Step> steps, CancellationToken canc
169169
await step.ExecuteAsync(cancellationToken);
170170
cancellationToken.ThrowIfCancellationRequested();
171171
}
172-
catch (TaskCanceledException)
172+
catch (OperationCanceledException)
173173
{
174174
this.State = PipelineState.Cancelled;
175175
return false;

0 commit comments

Comments
 (0)