- more menu freeze bugfixes

This commit is contained in:
Mark Vejvoda
2010-12-18 21:32:54 +00:00
parent 886bd3b37e
commit 3e20d3ffe8

View File

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