Skip to content

Commit c74d7fe

Browse files
committed
fixup
1 parent 336a78f commit c74d7fe

File tree

2 files changed

+377
-374
lines changed

2 files changed

+377
-374
lines changed

projects/RabbitMQ.Client/Impl/AutorecoveringConnection.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,24 @@ public async ValueTask DisposeAsync()
289289
{
290290
await _innerConnection.DisposeAsync()
291291
.ConfigureAwait(false);
292-
293-
_channels.Clear();
294-
_recordedEntitiesSemaphore.Dispose();
295-
_channelsSemaphore.Dispose();
296-
_recoveryCancellationTokenSource.Dispose();
297292
}
298293
catch (OperationInterruptedException)
299294
{
300295
// ignored, see rabbitmq/rabbitmq-dotnet-client#133
301296
}
302297
finally
303298
{
299+
try
300+
{
301+
_channels.Clear();
302+
_recordedEntitiesSemaphore.Dispose();
303+
_channelsSemaphore.Dispose();
304+
_recoveryCancellationTokenSource.Dispose();
305+
}
306+
catch
307+
{
308+
}
309+
304310
_disposed = true;
305311
}
306312
}

0 commit comments

Comments
 (0)