From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001
From: lss <316519258@qq.com>
Date: 星期五, 12 六月 2020 09:22:04 +0800
Subject: [PATCH] 2020.06.12

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceFixedAttributeLogic.cs |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceFixedAttributeLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceFixedAttributeLogic.cs
index fdb4e4a..db5cd51 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceFixedAttributeLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceFixedAttributeLogic.cs
@@ -52,11 +52,11 @@
             lock (this.hsGetHardInfoDevice)
             {
                 //鍏堢Щ闄�
-                this.RemoveDeviceHardInfoThread(device);
-
-                string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
-                this.hsGetHardInfoDevice.Add(mainkeys);
-
+                string mainKeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
+                if (this.hsGetHardInfoDevice.Contains(mainKeys) == true)
+                {
+                    this.hsGetHardInfoDevice.Remove(mainKeys);
+                }
                 if (HdlGatewayReceiveLogic.Current.IsEsixt("DeviceGetFixedAttribute") == false)
                 {
                     //娣诲姞浜嬩欢
@@ -89,6 +89,8 @@
                 //涓嶉渶瑕佸彂閫�
                 return;
             }
+            string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
+            this.hsGetHardInfoDevice.Add(mainkeys);
             //鍙戦��
             var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
             jObject.Add("Data", data);

--
Gitblit v1.8.0