File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
projects/RabbitMQ.Client/client/impl Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ await _config.TopologyRecoveryExceptionHandler.QueueRecoveryExceptionHandlerAsyn
406
406
}
407
407
finally
408
408
{
409
- await _recordedEntitiesSemaphore . WaitAsync ( )
409
+ await _recordedEntitiesSemaphore . WaitAsync ( cancellationToken )
410
410
. ConfigureAwait ( false ) ;
411
411
}
412
412
}
@@ -493,7 +493,7 @@ await _recordedEntitiesSemaphore.WaitAsync(cancellationToken)
493
493
}
494
494
495
495
internal async ValueTask RecoverConsumersAsync ( AutorecoveringChannel channelToRecover , IChannel channelToUse ,
496
- bool recordedEntitiesSemaphoreHeld = false )
496
+ bool recordedEntitiesSemaphoreHeld = false , CancellationToken cancellationToken = default )
497
497
{
498
498
if ( _disposed )
499
499
{
@@ -519,7 +519,8 @@ internal async ValueTask RecoverConsumersAsync(AutorecoveringChannel channelToRe
519
519
}
520
520
finally
521
521
{
522
- _recordedEntitiesSemaphore . Wait ( ) ;
522
+ await _recordedEntitiesSemaphore . WaitAsync ( cancellationToken )
523
+ . ConfigureAwait ( false ) ;
523
524
}
524
525
525
526
string oldTag = consumer . ConsumerTag ;
@@ -539,7 +540,7 @@ internal async ValueTask RecoverConsumersAsync(AutorecoveringChannel channelToRe
539
540
}
540
541
finally
541
542
{
542
- await _recordedEntitiesSemaphore . WaitAsync ( )
543
+ await _recordedEntitiesSemaphore . WaitAsync ( cancellationToken )
543
544
. ConfigureAwait ( false ) ;
544
545
}
545
546
}
@@ -557,7 +558,7 @@ await _config.TopologyRecoveryExceptionHandler.ConsumerRecoveryExceptionHandlerA
557
558
}
558
559
finally
559
560
{
560
- await _recordedEntitiesSemaphore . WaitAsync ( )
561
+ await _recordedEntitiesSemaphore . WaitAsync ( cancellationToken )
561
562
. ConfigureAwait ( false ) ;
562
563
}
563
564
}
You can’t perform that action at this time.
0 commit comments