try catch

This commit is contained in:
ackimixs
2024-05-08 15:07:47 +02:00
parent 0dde582695
commit c6aa238ec4

View File

@@ -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;