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
This commit is contained in:
Alexander Couzens 2021-02-03 11:04:22 +01:00
parent 265a5ebac8
commit 2f8f7b62b3
1 changed files with 1 additions and 0 deletions

View File

@ -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;