diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 12389f6f8..0d8a24806 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -130,9 +130,8 @@ namespace NzbDrone.Host c.AutoAddServices(Bootstrap.ASSEMBLIES) .AddNzbDroneLogger() .AddDatabase() + .AddStartupContext(context) .Resolve().PublishEvent(new ApplicationStartingEvent()); - - c.AddStartupContext(context); }) .ConfigureWebHost(builder => {