From c6aa238ec4a2dfc877ed787e1abd3d7290ba6b28 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 8 May 2024 15:07:47 +0200 Subject: [PATCH] try catch --- TCPServer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 9506da3..474d356 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -927,7 +927,11 @@ void TCPServer::handleEmergency(int distance, double angle) { awaitRobotIdle();*/ } - this->gameThread.~thread(); + try { + this->gameThread.~thread(); + } catch (const std::exception& ex) { + std::cout << ex.what() << std::endl; + } this->gameStarted = false;