summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 916d3e6..c8421b5 100644
--- a/ev.c
+++ b/ev.c
@@ -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