mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Backport: Update event_tv when time jumps backwards, so that we only note each jump once. Not strictly needed in 1.4, but good for correctness.
svn:r1354
This commit is contained in:
parent
2bdf307794
commit
0ae1851767
2
event.c
2
event.c
@ -915,6 +915,8 @@ timeout_correct(struct event_base *base, struct timeval *tv)
|
|||||||
struct timeval *ev_tv = &(**pev).ev_timeout;
|
struct timeval *ev_tv = &(**pev).ev_timeout;
|
||||||
evutil_timersub(ev_tv, &off, ev_tv);
|
evutil_timersub(ev_tv, &off, ev_tv);
|
||||||
}
|
}
|
||||||
|
/* Now remember what the new time turned out to be. */
|
||||||
|
base->event_tv = *tv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user