From 07afbe0ab741277a49c3bffb369125613ac29afd Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 9 Jun 2020 16:55:00 +0200
Subject: [PATCH] Removed the while loop in the destructor to wait for the
 action to finish.

---
 include/iri_ros_tools/module_action.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/iri_ros_tools/module_action.h b/include/iri_ros_tools/module_action.h
index 7a334b3..a34c7b3 100644
--- a/include/iri_ros_tools/module_action.h
+++ b/include/iri_ros_tools/module_action.h
@@ -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;
 }
-- 
GitLab