void CAntiCheatManager::OnSessionEnd() { DumpPlayerRecords(); DumpCheatRecords(); DecayCheatRecords(); CloseLogFile(); BackupLogFileAndSubmit(); CTimeValue currentTime = gEnv->pTimer->GetAsyncTime(); float deltaSeconds = currentTime.GetDifferenceInSeconds(m_lastDownloadTime); if (deltaSeconds > g_pGameCVars->g_dataRefreshFrequency * 3600) { CDownloadableResourcePtr res = GetDownloadableResource(); if (res) { // Clear the downloaded data and start download again res->Purge(); res->StartDownloading(); } m_lastDownloadTime = currentTime; } }