黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceUpdateLogic.cs
@@ -382,12 +382,11 @@
            {
                this.zbGateway.ReportAction -= this.UpdateDeviceProgress;
                new System.Threading.Thread(async () =>
                HdlThreadLogic.Current.RunThread(async () =>
                {
                    //终止升级
                    await this.otaDevice.KillUpdateAsync(this.zbGateway, 200);
                })
                { IsBackground = true }.Start();
                });
                this.UpdateStatu = UpdateStatuMode.DeviceUpdateFail;
                return;
@@ -556,7 +555,7 @@
            //升级成功
            this.UpdateStatu = UpdateStatuMode.UpdateSuccess;
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                System.Threading.Thread.Sleep(3000);
@@ -592,8 +591,7 @@
                    //设备升级成功!
                    this.UpdateStatuChangedEvent?.Invoke(1, Language.StringByID(R.MyInternationalizationString.uDeviceUpdateSuccess));
                });
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion
@@ -636,7 +634,7 @@
        private void StartDownLoadTimeOutThread()
        {
            this.downLoadTimeOutCount = 30;
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                while (true)
                {
@@ -665,8 +663,7 @@
                        break;
                    }
                }
            })
            { IsBackground = true }.Start();
            });
        }
        /// <summary>
@@ -691,7 +688,7 @@
        private void StartUpdateTimeOutThread()
        {
            this.UpdateTimeOutCount = 60;
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                while (true)
                {
@@ -719,8 +716,7 @@
                        break;
                    }
                }
            })
            { IsBackground = true }.Start();
            });
        }
        /// <summary>