kill the thread

This commit is contained in:
ackimixs
2024-05-08 16:07:17 +02:00
parent d98b1e7102
commit 3bc0bc4bb9

View File

@@ -936,12 +936,6 @@ void TCPServer::handleEmergency(int distance, double angle) {
}
this->broadcastMessage("strat;arduino;clear;4\n");
try {
this->gameThread.~thread();
} catch (const std::exception& ex) {
std::cout << ex.what() << std::endl;
}
this->gameStarted = false;
this->gameThread = std::thread([this]() { this->startGame(); });