Skip to content

Commit 3653cbe

Browse files
Merge branch 'stable'
2 parents 37c8110 + b12fb47 commit 3653cbe

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

projects/client/RabbitMQ.Client/src/client/impl/Connection.cs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,17 +1219,13 @@ public void HandleConnectionUnblocked()
12191219
void IDisposable.Dispose()
12201220
{
12211221
MaybeStopHeartbeatTimers();
1222-
Abort();
1223-
if (ShutdownReport.Count > 0)
1222+
try
12241223
{
1225-
foreach (ShutdownReportEntry entry in ShutdownReport)
1226-
{
1227-
if (entry.Exception != null)
1228-
{
1229-
throw entry.Exception;
1230-
}
1231-
}
1232-
throw new OperationInterruptedException(null);
1224+
Abort();
1225+
}
1226+
catch (OperationInterruptedException ignored)
1227+
{
1228+
// ignored, see rabbitmq/rabbitmq-dotnet-client#133
12331229
}
12341230
}
12351231

0 commit comments

Comments
 (0)