- 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:
parent
57a988ae56
commit
6cfe9cadbb
|
@ -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__);
|
||||
|
|
Loading…
Reference in New Issue