killed gameThread

This commit is contained in:
ackimixs
2024-05-08 15:06:51 +02:00
parent 25efdfa8bc
commit 0dde582695

View File

@@ -129,8 +129,6 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
this->stopEmergency = true;
this->gameThread.~thread();
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
if (!handleEmergencyFlag) {
@@ -929,6 +927,8 @@ void TCPServer::handleEmergency(int distance, double angle) {
awaitRobotIdle();*/
}
this->gameThread.~thread();
this->gameStarted = false;
this->gameThread = std::thread([this]() { this->startGame(); });