From f6357c42b6e22833dfcce80b20b5c12ded161f73 Mon Sep 17 00:00:00 2001 From: christian <6939810+chkr1011@users.noreply.github.com> Date: Tue, 16 Jun 2026 19:10:11 +0200 Subject: [PATCH] Prepare recommended fix --- Source/MQTTnet/MqttClient.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/MQTTnet/MqttClient.cs b/Source/MQTTnet/MqttClient.cs index 88a0a143..3fba420f 100644 --- a/Source/MQTTnet/MqttClient.cs +++ b/Source/MQTTnet/MqttClient.cs @@ -1049,6 +1049,12 @@ public sealed class MqttClient : Disposable, IMqttClient switch (exception) { case OperationCanceledException: + // if (cancellationToken.IsCancellationRequested) + // { + // return; + // } + + //break; return; case MqttCommunicationException: _logger.Warning(exception, "Communication error while sending/receiving keep alive packets");