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:
@@ -124,7 +124,6 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public void CloseServer()
|
public void CloseServer()
|
||||||
{
|
{
|
||||||
if (GameSettings.SendUserStatistics) GameAnalytics.OnStop();
|
|
||||||
Server.Disconnect();
|
Server.Disconnect();
|
||||||
Server = null;
|
Server = null;
|
||||||
}
|
}
|
||||||
@@ -171,7 +170,6 @@ namespace Barotrauma
|
|||||||
stopwatch.Stop();
|
stopwatch.Stop();
|
||||||
|
|
||||||
CloseServer();
|
CloseServer();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ProcessInput()
|
public void ProcessInput()
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ namespace Barotrauma
|
|||||||
inputThread.Start();
|
inputThread.Start();
|
||||||
game.Run();
|
game.Run();
|
||||||
inputThread.Abort(); inputThread.Join();
|
inputThread.Abort(); inputThread.Join();
|
||||||
|
if (GameSettings.SendUserStatistics) GameAnalytics.OnStop();
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
#if DEBUB
|
#if DEBUG
|
||||||
GameAnalytics.SetEnabledInfoLog(true);
|
GameAnalytics.SetEnabledInfoLog(true);
|
||||||
#endif
|
#endif
|
||||||
GameAnalytics.ConfigureBuild(GameMain.Version.ToString());
|
GameAnalytics.ConfigureBuild(GameMain.Version.ToString());
|
||||||
|
|||||||
Reference in New Issue
Block a user