mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 00:42:50 +02:00
- more menu freeze bugfixes
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user