mirror of https://gerrit.osmocom.org/libosmocore
gprs_ns2_vc_fsm: reset the alive elapsed timeout everytime
The alive elapsed timeout was only set once on the start of the test procedure but not every time an ALIVE PDU was sent. Fixes: OS#4997 Change-Id: I029696dfff21919f97ac4c33cdd82162b5ab1555
This commit is contained in:
parent
ab0e8646c4
commit
fa4121de2f
|
@ -205,6 +205,7 @@ static void alive_timeout_handler(void *data)
|
|||
case NS_TOUT_TNS_TEST:
|
||||
priv->alive.mode = NS_TOUT_TNS_ALIVE;
|
||||
priv->alive.N = 0;
|
||||
osmo_clock_gettime(CLOCK_MONOTONIC, &priv->alive.timer_started);
|
||||
ns2_tx_alive(priv->nsvc);
|
||||
osmo_timer_schedule(&priv->alive.timer, nsi->timeout[NS_TOUT_TNS_ALIVE], 0);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue