diff --git a/TCPServer.cpp b/TCPServer.cpp index 4733c70..74c9baf 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -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(); });