- attempt to fix corrupt connection stats sent to masterserver using a mutex in the lobby and when headless server reset counts to 0 when calculating

This commit is contained in:
Mark Vejvoda 2012-07-10 02:43:54 +00:00
parent 57a988ae56
commit 6cfe9cadbb
1 changed files with 2 additions and 0 deletions

View File

@ -2662,6 +2662,8 @@ void MenuStateCustomGame::publishToMasterserver() {
loadGameSettings(&gameSettings);
Config &config= Config::getInstance();
//string serverinfo="";
MutexSafeWrapper safeMutex((publishToMasterserverThread != NULL ? publishToMasterserverThread->getMutexThreadObjectAccessor() : NULL),string(__FILE__) + "_" + intToStr(__LINE__));
publishToServerInfo.clear();
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);