Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 46dd995

Browse files
committed
Respect cancellation
1 parent 66af177 commit 46dd995

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CodeGeneration.Roslyn.Engine/CompilationGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public async Task GenerateAsync(IProgress<Diagnostic> progress = null, Cancellat
152152
retriesLeft--;
153153
await Task.Delay(200, cancellationToken);
154154
}
155-
catch (Exception ex)
155+
catch (Exception ex) when (!(ex is OperationCanceledException))
156156
{
157157
ReportError(progress, "CGR001", inputSyntaxTree, ex);
158158
fileFailures.Add(ex);

0 commit comments

Comments
 (0)