X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/1c07891d9c059843fa4dcc0d0fa340676816d259..d9a90c6accc6cea7d5795cccbc615dcc31acb9d9:/ev.c diff --git a/ev.c b/ev.c index 916d3e6..2c34141 100644 --- a/ev.c +++ b/ev.c @@ -772,7 +772,7 @@ loop_init (EV_P_ unsigned int flags) now_floor = mn_now; rtmn_diff = ev_rt_now - mn_now; - if (!(flags & EVMETHOD_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS")) + if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS")) flags = atoi (getenv ("LIBEV_FLAGS")); if (!(flags & 0x0000ffff)) @@ -1384,7 +1384,10 @@ ev_timer_again (EV_P_ struct ev_timer *w) ev_timer_stop (EV_A_ w); } else if (w->repeat) - ev_timer_start (EV_A_ w); + { + w->at = w->repeat; + ev_timer_start (EV_A_ w); + } } #if EV_PERIODICS