diff --git a/DataVAPI/UpAndDown/ProcessServer.cs b/DataVAPI/UpAndDown/ProcessServer.cs index 8c84f7f..2ca95aa 100644 --- a/DataVAPI/UpAndDown/ProcessServer.cs +++ b/DataVAPI/UpAndDown/ProcessServer.cs @@ -99,7 +99,7 @@ namespace DataVAPI.UpAndDown { try { - if (!FistBOOL) + if (!IOTDevServer.GetInstance().GetIsConnected()) { if (IOTDevServer.GetInstance().CreateLinks(DataBus.ProductKey, DataBus.DeviceName, DataBus.DeviceSecret)) @@ -110,7 +110,6 @@ namespace DataVAPI.UpAndDown //订阅主播消息 Subscribe(IOTDevServer.BroadcastTopic); - FistBOOL=true; } else {