Only Initialize the stat tracker once, and explicitly set timeout to 5 seconds.

This commit is contained in:
Zack Piispanen 2013-11-08 02:20:38 -05:00
parent b2abf89432
commit f4c332ab2f
2 changed files with 15 additions and 4 deletions

View file

@ -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()