- more menu freeze bugfixes

This commit is contained in:
Mark Vejvoda 2010-12-18 21:32:54 +00:00
parent 886bd3b37e
commit 3e20d3ffe8
1 changed files with 3 additions and 3 deletions

View File

@ -1322,10 +1322,10 @@ void ServerInterface::updateListen() {
return;
}
MutexSafeWrapper safeMutex(&serverSynchAccessor,intToStr(__LINE__));
//MutexSafeWrapper safeMutex(&serverSynchAccessor,intToStr(__LINE__));
int openSlotCount= 0;
for(int i= 0; i<GameConstants::maxPlayers; ++i) {
MutexSafeWrapper safeMutexSlot(&slotAccessorMutexes[i],intToStr(__LINE__) + "_" + intToStr(i));
//MutexSafeWrapper safeMutexSlot(&slotAccessorMutexes[i],intToStr(__LINE__) + "_" + intToStr(i));
bool isSlotOpen = (slots[i] != NULL && slots[i]->isConnected() == false);
if(isSlotOpen == true) {
@ -1335,7 +1335,7 @@ void ServerInterface::updateListen() {
//MutexSafeWrapper safeMutex(&serverSynchAccessor);
serverSocket.listen(openSlotCount);
safeMutex.ReleaseLock();
//safeMutex.ReleaseLock();
}
int ServerInterface::getOpenSlotCount() {