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:
parent
e90bf47d8a
commit
06c47ec10a
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue