Skip to content

Commit

Permalink
Remove superfluous catch of OperationCanceledException (#290 closes #289
Browse files Browse the repository at this point in the history
)
  • Loading branch information
luigiberrettini authored Nov 7, 2021
1 parent a8b73e7 commit ed97deb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/NLog.Targets.Syslog/AsyncLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ private Task ProcessQueueAsync(MessageBuilder messageBuilder, TaskCompletionSour

return tcs.Task;
}
catch (OperationCanceledException)
{
tcs.SetCanceled();
return tcs.Task;
}
catch (Exception exception)
{
tcs.SetException(exception);
Expand Down

0 comments on commit ed97deb

Please sign in to comment.