File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
RabbitMQ.AMQP.Client/Impl Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ void OnOpened(Amqp.IConnection connection, Open open1)
264
264
catch ( Exception ex )
265
265
{
266
266
throw new ConnectionException (
267
- $ "{ ToString ( ) } connection failed.", ex ) ;
267
+ $ "{ ToString ( ) } connection failed.", ex ) ;
268
268
}
269
269
270
270
if ( _nativeConnection . IsClosed )
@@ -412,11 +412,12 @@ await _recordingTopologyListener.Accept(visitor)
412
412
}
413
413
414
414
OnNewStatus ( State . Open , null ) ;
415
- // after the connection is recovered we have to reconnect all the publishers and consumers
416
415
416
+ // after the connection is recovered we have to reconnect all the publishers and consumers
417
417
try
418
418
{
419
- await ReconnectEntitiesAsync ( ) . ConfigureAwait ( false ) ;
419
+ await ReconnectEntitiesAsync ( )
420
+ . ConfigureAwait ( false ) ;
420
421
}
421
422
catch ( Exception e )
422
423
{
@@ -434,11 +435,14 @@ await _recordingTopologyListener.Accept(visitor)
434
435
}
435
436
finally
436
437
{
437
- // TODO it is odd to have to add this check
438
- if ( false == _disposed )
438
+ // TODO it is odd to have to add this code, figure out why
439
+ try
439
440
{
440
441
_semaphoreClose . Release ( ) ;
441
442
}
443
+ catch ( ObjectDisposedException )
444
+ {
445
+ }
442
446
}
443
447
} ;
444
448
}
You can’t perform that action at this time.
0 commit comments