Only Initialize the stat tracker once, and explicitly set timeout to 5 seconds.
This commit is contained in:
parent
b2abf89432
commit
f4c332ab2f
2 changed files with 15 additions and 4 deletions
|
|
@ -70,7 +70,7 @@ namespace TShockAPI
|
|||
public static SecureRest RestApi;
|
||||
public static RestManager RestManager;
|
||||
public static Utils Utils = Utils.Instance;
|
||||
public static StatTracker StatTracker;
|
||||
public static StatTracker StatTracker = new StatTracker();
|
||||
/// <summary>
|
||||
/// Used for implementing REST Tokens prior to the REST system starting up.
|
||||
/// </summary>
|
||||
|
|
@ -599,7 +599,7 @@ namespace TShockAPI
|
|||
|
||||
ComputeMaxStyles();
|
||||
FixChestStacks();
|
||||
StatTracker = new StatTracker();
|
||||
StatTracker.Initialize();
|
||||
}
|
||||
|
||||
private void ComputeMaxStyles()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue