aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-12 02:54:46 +0100
committerlaforge <laforge@osmocom.org>2021-02-12 08:57:29 +0000
commitfa4121de2fdc93a8449702171e3b20e34b59dbba (patch)
treed1fcb548f61dffaf080ccf9e1646a41a01e6f42d /src
parentab0e8646c4aa022abc13e6d5bc961c4194439123 (diff)
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
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 88ce8aeb..31cfb51b 100644
--- a/src/gb/gprs_ns2_vc_fsm.c
+++ b/src/gb/gprs_ns2_vc_fsm.c
@@ -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;