mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Synchronize clock before tv_timeout calculation.
This commit is contained in:
parent
b30c0d0466
commit
4f993028be
1
event.c
1
event.c
@ -2770,6 +2770,7 @@ event_add_nolock_(struct event *ev, const struct timeval *tv,
|
||||
event_queue_remove_active(base, event_to_event_callback(ev));
|
||||
}
|
||||
|
||||
base->last_updated_clock_diff = 0; // force diff recalc for correct ev->ev_timeout calculation
|
||||
gettime(base, &now);
|
||||
|
||||
common_timeout = is_common_timeout(tv, base);
|
||||
|
Loading…
x
Reference in New Issue
Block a user