From 3bc0bc4bb93ac46d773a4330e519d3cd248f1417 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 8 May 2024 16:07:17 +0200 Subject: [PATCH] kill the thread --- TCPServer.cpp | 6 ------ 1 file changed, 6 deletions(-) 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(); });