From cc45e2aec04519db57b7efee1a2bfbec9d3afb98 Mon Sep 17 00:00:00 2001 From: Kimdiego2098 <2248356998@qq.com> Date: Wed, 28 Feb 2024 16:12:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BD=91=E5=85=B3=E5=8F=8C?= =?UTF-8?q?=E5=86=97=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Worker/Management/ManagementWoker.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ThingsGateway.Gateway.Application/Worker/Management/ManagementWoker.cs b/src/ThingsGateway.Gateway.Application/Worker/Management/ManagementWoker.cs index 9350036ef..833ae9ce4 100644 --- a/src/ThingsGateway.Gateway.Application/Worker/Management/ManagementWoker.cs +++ b/src/ThingsGateway.Gateway.Application/Worker/Management/ManagementWoker.cs @@ -126,6 +126,9 @@ public class ManagementWoker : BackgroundService GlobalData = _serviceScope.ServiceProvider.GetService(); Options = App.GetOptions(); IsStartBusinessDevice = Options.Redundancy.Enable ? Options.Redundancy.IsStartBusinessDevice : true; + //初始化直接启动 + IsStart = true; + StartLock.Release(); if (Options.Redundancy.Enable) { var udpDmtp = GetUdpDmtp(Options);