From a7aebded3d537439ff9449c9d40f7cb2cdb51db1 Mon Sep 17 00:00:00 2001
From: reinaortega <miguelangel.reinaortega@etsi.org>
Date: Wed, 21 Feb 2018 16:11:37 +0100
Subject: [PATCH] Fixing #30

Signed-off-by: reinaortega <miguelangel.reinaortega@etsi.org>
---
 LibOneM2M/OneM2M_Functions.ttcn | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn
index e42e686..fabe419 100644
--- a/LibOneM2M/OneM2M_Functions.ttcn
+++ b/LibOneM2M/OneM2M_Functions.ttcn
@@ -332,7 +332,8 @@ module OneM2M_Functions {
 				[]infoPort.receive(mw_responsePrimitiveforInfoPort) -> value v_response {
 				}
 			}
-	
+			
+			p_component.done;
 			f_disconnectInfoPort(p_component);
 				
 			return v_response;
@@ -354,6 +355,7 @@ module OneM2M_Functions {
 				}
 			}
 
+			p_component.done;
 			f_disconnectInfoPort(p_component);
 	
 			return v_request;
@@ -375,6 +377,7 @@ module OneM2M_Functions {
 				}
 			}
 	
+			p_ae.done;
 			f_disconnectInfoPort(p_ae);
 				
 			return v_primitiveContent;
@@ -398,6 +401,7 @@ module OneM2M_Functions {
 				}
 			}
 	
+			p_cse.done;
 			f_disconnectInfoPort(p_cse);
 				
 			return v_resourceIndex;
@@ -422,6 +426,7 @@ module OneM2M_Functions {
 				}
 			}
 
+			p_component.done;
 			f_disconnectInfoPort(p_component);
 			
 			return v_resourceIndex;
-- 
GitLab