瀏覽代碼

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();