From cc18e938d42fbee9af8322e5d44e8ac8274a9b65 Mon Sep 17 00:00:00 2001 From: lxw Date: Thu, 6 Jun 2024 18:04:22 +0800 Subject: [PATCH] =?UTF-8?q?cloud=20=E6=96=AD=E7=BA=BF=E9=87=8D=E8=BF=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Cloud/Client/CloudClient.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index b539ec2..d805b61 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -343,7 +343,10 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR { Log.Info("cloud disconnect"); Connected = false; - + if (AutoReConnect) + { + Connect(); + } return Task.CompletedTask; }