File tree Expand file tree Collapse file tree 2 files changed +377
-374
lines changed
projects/RabbitMQ.Client/Impl Expand file tree Collapse file tree 2 files changed +377
-374
lines changed Original file line number Diff line number Diff line change @@ -289,18 +289,24 @@ public async ValueTask DisposeAsync()
289
289
{
290
290
await _innerConnection . DisposeAsync ( )
291
291
. ConfigureAwait ( false ) ;
292
-
293
- _channels . Clear ( ) ;
294
- _recordedEntitiesSemaphore . Dispose ( ) ;
295
- _channelsSemaphore . Dispose ( ) ;
296
- _recoveryCancellationTokenSource . Dispose ( ) ;
297
292
}
298
293
catch ( OperationInterruptedException )
299
294
{
300
295
// ignored, see rabbitmq/rabbitmq-dotnet-client#133
301
296
}
302
297
finally
303
298
{
299
+ try
300
+ {
301
+ _channels . Clear ( ) ;
302
+ _recordedEntitiesSemaphore . Dispose ( ) ;
303
+ _channelsSemaphore . Dispose ( ) ;
304
+ _recoveryCancellationTokenSource . Dispose ( ) ;
305
+ }
306
+ catch
307
+ {
308
+ }
309
+
304
310
_disposed = true ;
305
311
}
306
312
}
You can’t perform that action at this time.
0 commit comments