Explorar el Código

Fix another unprotected UI access

Ivan Savenko hace 2 años
padre
commit
88566cb1ef
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      client/CServerHandler.cpp

+ 1 - 0
client/CServerHandler.cpp

@@ -322,6 +322,7 @@ void CServerHandler::applyPacksOnLobbyScreen()
 	boost::unique_lock<boost::recursive_mutex> lock(*mx);
 	while(!packsForLobbyScreen.empty())
 	{
+		boost::unique_lock<boost::recursive_mutex> guiLock(*CPlayerInterface::pim);
 		CPackForLobby * pack = packsForLobbyScreen.front();
 		packsForLobbyScreen.pop_front();
 		CBaseForLobbyApply * apply = applier->getApplier(typeList.getTypeID(pack)); //find the applier