This patch re-adds support the timer re-scheduling situation which used to be supported until I introduced the rb-tree based timer.
Signed-off-by: Pablo Neira Ayuso pablo@gnumonks.org --- src/timer.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/timer.c b/src/timer.c index 6852983..e68040f 100644 --- a/src/timer.c +++ b/src/timer.c @@ -68,6 +68,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);