Skip to content
Snippets Groups Projects
Commit 9cfe4f97 authored by Valerio Pastore's avatar Valerio Pastore
Browse files

.

parent 967fb87e
No related branches found
No related tags found
No related merge requests found
......@@ -58,11 +58,13 @@ AstriMaProcessor::~AstriMaProcessor() {
void AstriMaProcessor::switchState(Status newState) {
if (newState == STOP) {
printLog(std::cout, "Stopping");
setCurrentState(Status::STOP);
this->receiveAndProcessFlag = false;
if (receiveAndProcessThread.joinable()) {
receiveAndProcessThread.join();
}
printLog(std::cout, "Stopped");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment