From f53cad822ad54614c0062926262e6474cae25d57 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 23 Oct 2017 20:15:27 +0200 Subject: [PATCH] Fixed: Raise ApplicationStartupEvent after Owin is running. --- src/NzbDrone.Api/NancyBootstrapper.cs | 3 +-- src/NzbDrone.Host/ApplicationServer.cs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Api/NancyBootstrapper.cs b/src/NzbDrone.Api/NancyBootstrapper.cs index 1415dd4c2..a34641659 100644 --- a/src/NzbDrone.Api/NancyBootstrapper.cs +++ b/src/NzbDrone.Api/NancyBootstrapper.cs @@ -34,7 +34,6 @@ namespace NzbDrone.Api RegisterPipelines(pipelines); container.Resolve().Register(); - container.Resolve().PublishEvent(new ApplicationStartedEvent()); } private void RegisterPipelines(IPipelines pipelines) @@ -56,4 +55,4 @@ namespace NzbDrone.Api protected override byte[] FavIcon => null; } -} \ No newline at end of file +} diff --git a/src/NzbDrone.Host/ApplicationServer.cs b/src/NzbDrone.Host/ApplicationServer.cs index b884a9cb8..fbd0f1480 100644 --- a/src/NzbDrone.Host/ApplicationServer.cs +++ b/src/NzbDrone.Host/ApplicationServer.cs @@ -65,6 +65,8 @@ namespace NzbDrone.Host { _browserService.LaunchWebUI(); } + + _container.Resolve().PublishEvent(new ApplicationStartedEvent()); } protected override void OnStop()