Fixed: Publish ApplicationStartingEvent during startup

(cherry picked from commit 5400bce1295bdc4198d2cfe0b9258bbb7ccf0852)

Fixes #1199
pull/1218/head
Mark McDowall 2 years ago committed by Qstick
parent b33e45d266
commit a352c053ab

@ -19,6 +19,8 @@ using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Instrumentation;
using NzbDrone.Core.Lifecycle;
using NzbDrone.Core.Messaging.Events;
using NzbDrone.Host.AccessControl;
using NzbDrone.Http.Authentication;
using NzbDrone.SignalR;
@ -215,6 +217,7 @@ namespace NzbDrone.Host
IConfigFileProvider configFileProvider,
IRuntimeInfo runtimeInfo,
IFirewallAdapter firewallAdapter,
IEventAggregator eventAggregator,
ProwlarrErrorPipeline errorHandler)
{
initializeLogger.Initialize();
@ -236,6 +239,8 @@ namespace NzbDrone.Host
Console.CancelKeyPress += (sender, eventArgs) => NLog.LogManager.Configuration = null;
}
eventAggregator.PublishEvent(new ApplicationStartingEvent());
if (OsInfo.IsWindows && runtimeInfo.IsAdmin)
{
firewallAdapter.MakeAccessible();

Loading…
Cancel
Save