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);