From b633357d8e9a376b80557cd56b0f2c27aa79169b Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 17 Apr 2019 19:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Diotnode=E6=9B=B4=E6=96=B0iotc?= =?UTF-8?q?enter=E5=9C=B0=E5=9D=80=E5=90=8E=E4=B8=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=87=8D=E8=BF=9E=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/IoT/IoT.Shared/Application/Services/NodeService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/IoT/IoT.Shared/Application/Services/NodeService.cs b/projects/IoT/IoT.Shared/Application/Services/NodeService.cs index 14ab648a..d79ca4bf 100644 --- a/projects/IoT/IoT.Shared/Application/Services/NodeService.cs +++ b/projects/IoT/IoT.Shared/Application/Services/NodeService.cs @@ -553,6 +553,10 @@ namespace Application.Services if (Connection.State == HubConnectionState.Disconnected) { Console.WriteLine("start connect"); + if (this._notifyHost != this._cfg["notify:host"]) + { + InitConnection(); + } Connection.StartAsync().Wait(); this.Notify(); }