diff --git a/TCPServer.cpp b/TCPServer.cpp index f74c1fb..f3f28f7 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -125,10 +125,10 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (tokens[2] == "stop proximity") { if (!gameStarted) return; - this->stopEmergency = true; - this->broadcastMessage("strat;arduino;clear;1\n"); + this->stopEmergency = true; + this->gameThread.~thread(); std::vector args = TCPUtils::split(tokens[3], ",");