mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-22 02:26:26 -04:00
uhm - i obliterated a gettimeofday that was required for remapping the
timeouts to "real" time. thanks to claudio for pointing that out. svn:r211
This commit is contained in:
parent
2e8051f593
commit
71108cd98b
3
event.c
3
event.c
@ -561,7 +561,8 @@ event_pending(struct event *ev, short event, struct timeval *tv)
|
||||
if (tv != NULL && (flags & event & EV_TIMEOUT)) {
|
||||
gettime(&now);
|
||||
timersub(&ev->ev_timeout, &now, &res);
|
||||
gettime(&now);
|
||||
/* correctly remap to real time */
|
||||
gettimeofday(&now, NULL);
|
||||
timeradd(&now, &res, tv);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user