Explorar el Código

Change thread join to detach

Dydzio hace 2 años
padre
commit
16d06827d6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/widgets/AdventureMapClasses.cpp

+ 1 - 1
client/widgets/AdventureMapClasses.cpp

@@ -1159,7 +1159,7 @@ void CInGameConsole::endEnteringText(bool processEnteredText)
 		{
 			//some commands like gosolo don't work when executed from GUI thread
 			boost::thread clientCommandThread(ClientCommandManager::processCommand, txt.substr(1), true);
-			clientCommandThread.join();
+			clientCommandThread.detach();
 		}
 	}
 	enteredText.clear();