mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
Add cancellation token to adapter
This commit is contained in:
@@ -63,7 +63,7 @@ namespace MQTTnet.Core.Server
|
||||
var packets = consumable.Take(_pendingPublishPackets.Count).ToList();
|
||||
try
|
||||
{
|
||||
await adapter.SendPacketsAsync(_options.DefaultCommunicationTimeout, packets).ConfigureAwait(false);
|
||||
await adapter.SendPacketsAsync(_options.DefaultCommunicationTimeout, cancellationToken, packets).ConfigureAwait(false);
|
||||
}
|
||||
catch (MqttCommunicationException exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user