mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
killed gameThread
This commit is contained in:
@@ -129,8 +129,6 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
|
||||
this->stopEmergency = true;
|
||||
|
||||
this->gameThread.~thread();
|
||||
|
||||
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
|
||||
|
||||
if (!handleEmergencyFlag) {
|
||||
@@ -929,6 +927,8 @@ void TCPServer::handleEmergency(int distance, double angle) {
|
||||
awaitRobotIdle();*/
|
||||
}
|
||||
|
||||
this->gameThread.~thread();
|
||||
|
||||
this->gameStarted = false;
|
||||
|
||||
this->gameThread = std::thread([this]() { this->startGame(); });
|
||||
|
||||
Reference in New Issue
Block a user