|
@@ -113,6 +113,12 @@ func main() {
|
|
|
|
|
|
go pkg.GetCloudStatus(&cloudStatus, &lastCloudStatus, cloudTurnLength)
|
|
|
|
|
|
+
|
|
|
+ go renew()
|
|
|
+
|
|
|
+
|
|
|
+ go pkg.GetCloudConfig(cloudStatus, lastCloudStatus, cloudTurnLength)
|
|
|
+
|
|
|
for {
|
|
|
if launchedFlag {
|
|
|
time.Sleep(time.Duration(cloudTurnLength) * time.Second)
|
|
@@ -151,13 +157,6 @@ func main() {
|
|
|
} else {
|
|
|
c_log.GlobalLogger.Error("未知的设备运行状态。【status】=", localStatus)
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- go renew()
|
|
|
-
|
|
|
-
|
|
|
- go pkg.GetCloudConfig(cloudStatus, lastCloudStatus, cloudTurnLength)
|
|
|
-
|
|
|
}
|
|
|
|
|
|
}
|