云平台断开回调处加休眠

master
CZ 4 months ago
parent 2f0be3c8cd
commit 541c9684aa

@ -385,6 +385,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR
Connected = false; Connected = false;
if (AutoReConnect) if (AutoReConnect)
{ {
Thread.Sleep(5000);
Connect(); Connect();
} }
return Task.CompletedTask; return Task.CompletedTask;

Loading…
Cancel
Save