Change in osmo-ttcn3-hacks[master]: NS_Emulation: Fix Tns-alive/Tns-test expiration detection

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Sep 25 10:01:54 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20186 )

Change subject: NS_Emulation: Fix Tns-alive/Tns-test expiration detection
......................................................................

NS_Emulation: Fix Tns-alive/Tns-test expiration detection

Change-Id: Icb7d076f57c166b498c1b3edd84edcf13ea9739d
---
M library/NS_Emulation.ttcn
1 file changed, 4 insertions(+), 4 deletions(-)

Approvals:
  lynxis lazus: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/NS_Emulation.ttcn b/library/NS_Emulation.ttcn
index 0198da8..97a48e5 100644
--- a/library/NS_Emulation.ttcn
+++ b/library/NS_Emulation.ttcn
@@ -175,19 +175,19 @@
 		var ASP_Event evt;
 
 		/* transition to DEAD if t_alive times out */
-		[Tns_alive.running] Tns_alive.timeout {
-			log("Tns-aeive expired: changing to DEAD_BLOCKED + starting Tns-test");
+		[] Tns_alive.timeout {
+			log("Tns-alive expired: changing to DEAD_BLOCKED + starting Tns-test");
 			f_change_state(NSE_S_DEAD_BLOCKED);
 			Tns_test.start;
 		}
 
-		[Tns_test.running] Tns_test.timeout {
+		[] Tns_test.timeout {
 			log("Tns-test expired: sending NS-ALIVE");
 			f_sendAlive();
 		}
 
 		/* Stop t_alive when receiving ALIVE-ACK */
-		[] NSCP.receive(t_NS_ALIVE_ACK) {
+		[Tns_alive.running] NSCP.receive(t_NS_ALIVE_ACK) {
 			log("NS-ALIVE-ACK received: stopping Tns-alive; starting Tns-test");
 			Tns_alive.stop;
 			Tns_test.start;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20186
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Icb7d076f57c166b498c1b3edd84edcf13ea9739d
Gerrit-Change-Number: 20186
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200925/e1f385fa/attachment.htm>


More information about the gerrit-log mailing list