From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 07 十一月 2019 13:48:36 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlFirmwareUpdateLogic.cs |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlFirmwareUpdateLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlFirmwareUpdateLogic.cs
index c9dd905..12fe130 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlFirmwareUpdateLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlFirmwareUpdateLogic.cs
@@ -18,7 +18,7 @@
         public static void DoUpdateNextFirmware()
         {
             //涓嬩竴涓鎵ц鏇存柊鐨勭綉鍏�
-            GatewayFirmwareUpdateControl gwControl = null;
+            HdlGatewayUpdateLogic gwControl = null;
             foreach (var contr in FirmwareUpdateResourse.dicGatewayUpdateList.Values)
             {
                 //濡傛灉鍒殑杩樺湪鍗囩骇涓�,鍒欎笉鍐嶅鐞�
@@ -49,19 +49,21 @@
                     deviceControl = contr;
                 }
             }
-
-            if (gwControl != null)
+            HdlThreadLogic.Current.RunMain(() =>
             {
-                //寮�濮嬫墽琛屾洿鏂版搷浣�
-                gwControl.DoStartUpdate();
-                return;
-            }
+                if (gwControl != null)
+                {
+                    //寮�濮嬫墽琛屾洿鏂版搷浣�
+                    gwControl.DoStartUpdate();
+                    return;
+                }
 
-            if (deviceControl != null)
-            {
-                //寮�濮嬫墽琛屾洿鏂版搷浣�
-                deviceControl.DoStartUpdate();
-            }
+                if (deviceControl != null)
+                {
+                    //寮�濮嬫墽琛屾洿鏂版搷浣�
+                    deviceControl.DoStartUpdate();
+                }
+            });
         }
 
         #endregion

--
Gitblit v1.8.0