mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
Prepare recommended fix
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user