mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
265a5ebac8
commit
2f8f7b62b3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue