1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 21:26:08 +00:00

fix null pointer exception during startup

This commit is contained in:
kaso17 2017-11-08 16:03:38 +01:00
parent e90bf47d8a
commit 06c47ec10a

View file

@ -25,6 +25,7 @@ namespace JackettConsole
{
try
{
Engine.BuildContainer(new WebApi2Module());
var options = new ConsoleOptions();
if (!Parser.Default.ParseArguments(args, options) || options.ShowHelp == true)
{
@ -222,7 +223,6 @@ namespace JackettConsole
JackettStartup.NoRestart = options.NoRestart;
}
Engine.BuildContainer(new WebApi2Module());
Engine.Server.Initalize();
Engine.Server.Start();
Engine.RunTime.Spin();