--- libev/ev.c 2012/01/18 12:51:41 1.405 +++ libev/ev.c 2012/01/24 16:37:12 1.406 @@ -3301,6 +3301,8 @@ { EV_FREQUENT_CHECK; + clear_pending (EV_A_ w); + if (ev_is_active (w)) { if (w->repeat)