소스 검색

Change thread join to detach

Dydzio 2 년 전
부모
커밋
16d06827d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();