Skip to content

Commit

Permalink
Don't raise error when shutting down sync services (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Jan 4, 2024
1 parent 78e9012 commit 090d43f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ await Parallel.ForEachAsync(
{
await ProcessChangesForEntityType(entityType, ct);
}
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested)
{
throw;
}
catch (Exception ex)
{
throw new ProcessChangesException(entityType, ex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ async Task SyncIfEnabled(string modelType)
{
await ProcessChangesForModelType(modelType, cancellationToken);
}
catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested)
{
throw;
}
catch (Exception ex)
{
throw new ProcessChangesException(modelType, ex);
Expand Down

0 comments on commit 090d43f

Please sign in to comment.