Skip to content

Commit 2368cfa

Browse files
committed
Make sure corresponding Connection and Channel token properly float into handlers
1 parent 58ac949 commit 2368cfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/RabbitMQ.Client/Impl/Channel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected void TakeOver(Channel other)
196196
public Task CloseAsync(ushort replyCode, string replyText, bool abort,
197197
CancellationToken cancellationToken)
198198
{
199-
var args = new ShutdownEventArgs(ShutdownInitiator.Application, replyCode, replyText);
199+
var args = new ShutdownEventArgs(ShutdownInitiator.Application, replyCode, replyText, cancellationToken: cancellationToken);
200200
return CloseAsync(args, abort, cancellationToken);
201201
}
202202

projects/RabbitMQ.Client/Impl/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ internal void EnsureIsOpen()
297297
public Task CloseAsync(ushort reasonCode, string reasonText, TimeSpan timeout, bool abort,
298298
CancellationToken cancellationToken = default)
299299
{
300-
var reason = new ShutdownEventArgs(ShutdownInitiator.Application, reasonCode, reasonText);
300+
var reason = new ShutdownEventArgs(ShutdownInitiator.Application, reasonCode, reasonText, cancellationToken: cancellationToken);
301301
return CloseAsync(reason, abort, timeout, cancellationToken);
302302
}
303303

0 commit comments

Comments
 (0)