From b928480932301ded99f0895dcd52f12cad78cb05 Mon Sep 17 00:00:00 2001 From: Hannes Gredler Date: Sun, 18 May 2008 11:18:42 +0200 Subject: [PATCH] fix a corner case in timer wheel processing --- src/scheduler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scheduler.c b/src/scheduler.c index 3702818f..e0a070d3 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -417,6 +417,11 @@ olsr_walk_timers(clock_t *last_run) total_timers_walked, timers_running, total_timers_fired); #endif + /* + * If the scheduler has slipped and we have walked all wheel slots, + * reset the last timer run. + */ + *last_run = now_times; } /** -- 2.20.1