We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70b943a commit db63a55Copy full SHA for db63a55
projects/RabbitMQ.Client/client/impl/AsyncConsumerWorkService.cs
@@ -128,7 +128,7 @@ private async Task LoopWithConcurrency(CancellationToken cancellationToken)
128
{
129
while (await _channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
130
131
- while (_channel.Reader.TryRead(out Work work))
+ while (_channel.Reader.TryRead(out Work work) && !cancellationToken.IsCancellationRequested)
132
133
// Do a quick synchronous check before we resort to async/await with the state-machine overhead.
134
if (!_limiter.Wait(0))
0 commit comments