mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
fix null pointer exception during startup
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user