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

Commit ed97deb

Browse files
Remove superfluous catch of OperationCanceledException (#290 closes #289)
1 parent a8b73e7 commit ed97deb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/NLog.Targets.Syslog/AsyncLogger.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ private Task ProcessQueueAsync(MessageBuilder messageBuilder, TaskCompletionSour
108108

109109
return tcs.Task;
110110
}
111-
catch (OperationCanceledException)
112-
{
113-
tcs.SetCanceled();
114-
return tcs.Task;
115-
}
116111
catch (Exception exception)
117112
{
118113
tcs.SetException(exception);

0 commit comments

Comments
 (0)