diff --git a/src/resolv.c b/src/resolv.c index ed8ea76f..1785f766 100644 --- a/src/resolv.c +++ b/src/resolv.c @@ -448,6 +448,7 @@ reset_timer() return; } float repeat = tv->tv_sec + tv->tv_usec / 1000000. + 1e-9; + repeat = repeat < 1.f ? 1.f : repeat; ev_timer_set(&default_ctx.tw, repeat, repeat); ev_timer_again(default_loop, &default_ctx.tw); }