public static void EndSessionAndStopQueue() { GAThreading.IgnoreTimer(Instance.SuspendBlockId); if (Initialized) { GALogger.I("Ending session."); GAEvents.StopEventQueue(); if (IsEnabled() && SessionIsStarted()) { GAEvents.AddSessionEndEvent(); SessionStart = 0; } GAThreading.StopThread(); } }
public static void EndSessionAndStopQueue(bool endThread) { if (Initialized) { if (IsEnabled() && SessionIsStarted()) { GALogger.I("Ending session."); GAEvents.StopEventQueue(); GAEvents.AddSessionEndEvent(); SessionStart = 0; } } if (endThread) { GAThreading.StopThread(); } }