Bläddra i källkod

Fix another unprotected UI access

Ivan Savenko 2 år sedan
förälder
incheckning
88566cb1ef
1 ändrade filer med 1 tillägg och 0 borttagningar
  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