aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fsm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 049663d7..67db1825 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -318,6 +318,9 @@ int osmo_fsm_inst_state_chg(struct osmo_fsm_inst *fi, uint32_t new_state,
return -EPERM;
}
+ /* delete the old timer */
+ osmo_timer_del(&fi->timer);
+
if (st->onleave)
st->onleave(fi, new_state);