Http interface cleanup

This commit is contained in:
Madpeter 2020-04-29 20:24:29 +01:00
parent 13d7eef4d8
commit c844807713
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ namespace BetterSecondBot.HttpServer.Control.CNC
httpserver.NewBot(); httpserver.NewBot();
httpserver.GetBot.Setup(httpserver.GetConfig, AssemblyInfo.GetGitHash()); httpserver.GetBot.Setup(httpserver.GetConfig, AssemblyInfo.GetGitHash());
httpserver.GetBot.Start(); httpserver.GetBot.Start();
return new string[] { "OK","Starting bot now" }; return new [] { "OK","Starting bot now" };
} }
return Failed("Unable to Login the bot (it might already be running)"); return Failed("Unable to Login the bot (it might already be running)");
} }

View file

@ -14,7 +14,7 @@ namespace BetterSecondBot.HttpServer.Control.CNC
if (httpserver.HTTPCnCmode == true) if (httpserver.HTTPCnCmode == true)
{ {
httpserver.ShutdownHTTP = true; httpserver.ShutdownHTTP = true;
return new string[] { "OK", "Shutting down" }; return new [] { "OK", "Shutting down" };
} }
return Failed("Not running as CNC"); return Failed("Not running as CNC");
} }