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