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 @@ protected override void ApplicationStartup(TinyIoCContainer container, IPipeline RegisterPipelines(pipelines); container.Resolve().Register(); - container.Resolve().PublishEvent(new ApplicationStartedEvent()); } private void RegisterPipelines(IPipelines pipelines) @@ -56,4 +55,4 @@ protected override TinyIoCContainer GetApplicationContainer() 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 @@ public void Start() { _browserService.LaunchWebUI(); } + + _container.Resolve().PublishEvent(new ApplicationStartedEvent()); } protected override void OnStop()