mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
added another thread guard
This commit is contained in:
@@ -1371,6 +1371,7 @@ void MenuStateCustomGame::updateControlers(){
|
|||||||
|
|
||||||
void MenuStateCustomGame::closeUnusedSlots(){
|
void MenuStateCustomGame::closeUnusedSlots(){
|
||||||
try {
|
try {
|
||||||
|
MutexSafeWrapper safeMutex(&masterServerThreadAccessor);
|
||||||
ServerInterface* serverInterface= NetworkManager::getInstance().getServerInterface();
|
ServerInterface* serverInterface= NetworkManager::getInstance().getServerInterface();
|
||||||
for(int i= 0; i<mapInfo.players; ++i){
|
for(int i= 0; i<mapInfo.players; ++i){
|
||||||
if(listBoxControls[i].getSelectedItemIndex()==ctNetwork){
|
if(listBoxControls[i].getSelectedItemIndex()==ctNetwork){
|
||||||
|
Reference in New Issue
Block a user