summaryrefslogtreecommitdiff
path: root/lib/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/timer.c')
-rw-r--r--lib/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/timer.c b/lib/timer.c
index eb7ea690..4e4aa55e 100644
--- a/lib/timer.c
+++ b/lib/timer.c
@@ -32,7 +32,6 @@
#include "nest/bird.h"
-#include "lib/coro.h"
#include "lib/heap.h"
#include "lib/resource.h"
#include "lib/timer.h"
@@ -59,7 +58,7 @@ tm_free(resource *r)
}
static void
-tm_dump(resource *r)
+tm_dump(resource *r, unsigned indent UNUSED)
{
timer *t = (void *) r;
@@ -117,7 +116,7 @@ tm_set_in_tl(timer *t, btime when, struct timeloop *local_timeloop)
t->loop = local_timeloop;
- if ((t->index == 1) && (local_timeloop->coro != this_coro))
+ if (t->index == 1)
birdloop_ping(local_timeloop->loop);
}
@@ -193,6 +192,7 @@ timers_fire(struct timeloop *loop, int io_log)
io_log_event(t->hook, t->data);
t->hook(t);
+ tmp_flush();
}
}