Commit 07afbe0a authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the while loop in the destructor to wait for the action to finish.

parent fe67a0e8
......@@ -819,10 +819,7 @@ CModuleAction<action_ros>::~CModuleAction()
if(this->enabled)
{
if(this->status==ACTION_RUNNING)
{
this->action_client->cancelGoal();
while(!this->is_finished());
}
}
delete this->action_client;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment