aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-03 11:04:22 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-02-03 11:08:00 +0100
commit2f8f7b62b3ee6cba46613f3bc487a84d6f23ec12 (patch)
tree37af5dbddad5759caff5c952da7b1c3f6f54fcb9 /src
parent265a5ebac8f755a031ae5f7d83a9ead5226d99b5 (diff)
gprs_ns2_vc_fsm: reset ALIVE N counter when restarting the test procedure.
Otherwise a NS-VC would flap between ALIVE and UNBLOCKED state. Related: OS#4959 Change-Id: Id98629bd65f92103e0e571ec388c58b02cb2ccb5
Diffstat (limited to 'src')
-rw-r--r--src/gb/gprs_ns2_vc_fsm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c
index f4c4e463..6314408a 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -200,6 +200,7 @@ static void alive_timeout_handler(void *data)
switch (priv->alive.mode) {
case NS_TOUT_TNS_TEST:
priv->alive.mode = NS_TOUT_TNS_ALIVE;
+ priv->alive.N = 0;
ns2_tx_alive(priv->nsvc);
osmo_timer_schedule(&priv->alive.timer, nsi->timeout[NS_TOUT_TNS_ALIVE], 0);
break;