Moved RestApi initialisation to main Initialise method so its available early. This helps tools detect a server during its timeconsuming startup. Additional threading may be required to ensure timely responses during high load periods
This commit is contained in:
parent
e5a078957f
commit
ce5c659e89
1 changed files with 3 additions and 2 deletions
|
|
@ -210,6 +210,9 @@ namespace TShockAPI
|
|||
Commands.InitCommands();
|
||||
//RconHandler.StartThread();
|
||||
|
||||
if (Config.RestApiEnabled)
|
||||
RestApi.Start();
|
||||
|
||||
if (Config.BufferPackets)
|
||||
PacketBuffer = new PacketBufferer();
|
||||
|
||||
|
|
@ -434,8 +437,6 @@ namespace TShockAPI
|
|||
AuthToken = 0;
|
||||
}
|
||||
Regions.ReloadAllRegions();
|
||||
if (Config.RestApiEnabled)
|
||||
RestApi.Start();
|
||||
|
||||
StatTracker.CheckIn();
|
||||
FixChestStacks();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue