diff options
Diffstat (limited to 'source4/lib/events/events_select.c')
-rw-r--r-- | source4/lib/events/events_select.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/lib/events/events_select.c b/source4/lib/events/events_select.c index 291ddbde2b..b2f9cacf5f 100644 --- a/source4/lib/events/events_select.c +++ b/source4/lib/events/events_select.c @@ -218,7 +218,8 @@ static int select_event_loop_select(struct select_event_context *select_ev, stru } if (selrtn == 0 && tvalp) { - common_event_loop_timer(select_ev->ev); + /* we don't care about a possible delay here */ + common_event_loop_timer_delay(select_ev->ev); return 0; } @@ -252,10 +253,8 @@ static int select_event_loop_once(struct event_context *ev) struct select_event_context); struct timeval tval; - tval = common_event_loop_delay(ev); - + tval = common_event_loop_timer_delay(ev); if (timeval_is_zero(&tval)) { - common_event_loop_timer(ev); return 0; } |