Skip to content

Commit 36a16ba

Browse files
Support cancellation on the flow control block (#1643)
Co-authored-by: Daniel Marbach <[email protected]>
1 parent f2cf79a commit 36a16ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/RabbitMQ.Client/client/impl/ChannelBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ protected ValueTask ModelSendAsync<TMethod, THeader>(in TMethod method, in THead
453453
{
454454
if (!_flowControlBlock.IsSet)
455455
{
456-
_flowControlBlock.Wait();
456+
_flowControlBlock.Wait(cancellationToken);
457457
}
458458

459459
return Session.TransmitAsync(in method, in header, body, cancellationToken);

0 commit comments

Comments
 (0)