Skip to content

Commit e7aa4a9

Browse files
committed
Do not invoke OnException when operation was cancelled
1 parent 014088d commit e7aa4a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/RabbitMQ.Client/Impl/AsyncEventingWrapper.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ private readonly async Task InternalInvoke(Delegate[] handlers, object sender, T
6161
await action(sender, @event)
6262
.ConfigureAwait(false);
6363
}
64+
catch (OperationCanceledException)
65+
{
66+
// Ignore cancellation exceptions
67+
}
6468
catch (Exception exception)
6569
{
6670
if (_onException != null)

0 commit comments

Comments
 (0)