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)
|
switch (exception)
|
||||||
{
|
{
|
||||||
case OperationCanceledException:
|
case OperationCanceledException:
|
||||||
|
// if (cancellationToken.IsCancellationRequested)
|
||||||
|
// {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
//break;
|
||||||
return;
|
return;
|
||||||
case MqttCommunicationException:
|
case MqttCommunicationException:
|
||||||
_logger.Warning(exception, "Communication error while sending/receiving keep alive packets");
|
_logger.Warning(exception, "Communication error while sending/receiving keep alive packets");
|
||||||
|
|||||||
Reference in New Issue
Block a user