Fixed dedicated server stopping GameAnalytics and never restarting it when the "restart" console command is used. + Fixed typo in GameAnalyticsManager. Closes #492

This commit is contained in:
Joonas Rikkonen
2018-07-18 11:41:39 +03:00
parent 1ef2cb7500
commit afb420810e
3 changed files with 2 additions and 3 deletions

View File

@@ -124,7 +124,6 @@ namespace Barotrauma
public void CloseServer()
{
if (GameSettings.SendUserStatistics) GameAnalytics.OnStop();
Server.Disconnect();
Server = null;
}
@@ -171,7 +170,6 @@ namespace Barotrauma
stopwatch.Stop();
CloseServer();
}
public void ProcessInput()

View File

@@ -31,6 +31,7 @@ namespace Barotrauma
inputThread.Start();
game.Run();
inputThread.Abort(); inputThread.Join();
if (GameSettings.SendUserStatistics) GameAnalytics.OnStop();
}
catch (Exception e)
{

View File

@@ -7,7 +7,7 @@ namespace Barotrauma
{
public static void Init()
{
#if DEBUB
#if DEBUG
GameAnalytics.SetEnabledInfoLog(true);
#endif
GameAnalytics.ConfigureBuild(GameMain.Version.ToString());