Browse Source

Fix another unprotected UI access

Ivan Savenko 2 years ago
parent
commit
88566cb1ef
1 changed files with 1 additions and 0 deletions
  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