diff --git a/ttcn/DENM/LibItsDenm_Functions.ttcn b/ttcn/DENM/LibItsDenm_Functions.ttcn index f10e40e12e2b91dc2166d907571b13d52d344585..7f8d5cab096516ba2aac01bf972b7279f0092ca6 100644 --- a/ttcn/DENM/LibItsDenm_Functions.ttcn +++ b/ttcn/DENM/LibItsDenm_Functions.ttcn @@ -351,14 +351,18 @@ module LibItsDenm_Functions { * @return */ function f_awaitDenMessageOut(in template (present) DenmInd p_rcvMsg, out template (value) DenmInd p_rcvdMsg) runs on ItsFa return FncRetCode { - var FncRetCode v_ret := e_success; + var FncRetCode v_ret := e_timeout; - tc_wait.start; + tc_ac.start; alt { [] denmPort.receive(p_rcvMsg) -> value p_rcvdMsg { - tc_wait.stop; + tc_ac.stop; v_ret := e_success; } + [] tc_ac.timeout { + log("Timeout while awaiting the reception of a message"); + v_ret := e_timeout; + } } return v_ret;