From 223b318d0070d06e7b64192dc93aa8103865d657 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 16 三月 2021 11:42:57 +0800
Subject: [PATCH] 1.

---
 HDL_ON/DAL/Mqtt/MqttClient.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs
index 18941e8..6b893ed 100644
--- a/HDL_ON/DAL/Mqtt/MqttClient.cs
+++ b/HDL_ON/DAL/Mqtt/MqttClient.cs
@@ -229,6 +229,10 @@
             {
                 return;
             }
+            if(DB_ResidenceData.Instance.CurrentRegion == null || DB_ResidenceData.Instance.CurrentRegion.RegionID == null)
+            {
+                return;
+            }
 
             //杩藉姞锛氭病鏈夎繙绋嬭繛鎺ョ殑鏉冮檺
             if (RemoteMqttIsConnecting || remoteIsConnected)

--
Gitblit v1.8.0