laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/24684 )

Change subject: gprs_ns2_vc_fsm: reset the ALIVE response time when stopping 
test
......................................................................

gprs_ns2_vc_fsm: reset the ALIVE response time when stopping test

Prevent showing a response time when the NSVC has failed.

Related: OS#5089
Change-Id: I5435077d35ff1ae3d743ea1b1b8ace7f0fb913cf
---
M src/gb/gprs_ns2_vc_fsm.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  daniel: Looks good to me, approved
  dexter: Looks good to me, but someone else must approve
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c
index 70258cc..05118b2 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -181,6 +181,7 @@

 static void stop_test_procedure(struct gprs_ns2_vc_priv *priv)
 {
+       osmo_stat_item_set(osmo_stat_item_group_get_item(priv->nsvc->statg, 
NS_STAT_ALIVE_DELAY), 0);
        osmo_timer_del(&priv->alive.timer);
 }


--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24684
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5435077d35ff1ae3d743ea1b1b8ace7f0fb913cf
Gerrit-Change-Number: 24684
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to