summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/libosmocore/src/timer.c')
-rw-r--r--src/shared/libosmocore/src/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/libosmocore/src/timer.c b/src/shared/libosmocore/src/timer.c
index 217f6521..79d4ad6d 100644
--- a/src/shared/libosmocore/src/timer.c
+++ b/src/shared/libosmocore/src/timer.c
@@ -69,6 +69,7 @@ static void __add_timer(struct osmo_timer_list *timer)
*/
void osmo_timer_add(struct osmo_timer_list *timer)
{
+ osmo_timer_del(timer);
timer->active = 1;
INIT_LLIST_HEAD(&timer->list);
__add_timer(timer);