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:
Nick Mathewson 2009-07-17 19:00:22 +00:00
parent 2bdf307794
commit 0ae1851767

View File

@ -915,6 +915,8 @@ timeout_correct(struct event_base *base, struct timeval *tv)
struct timeval *ev_tv = &(**pev).ev_timeout;
evutil_timersub(ev_tv, &off, ev_tv);
}
/* Now remember what the new time turned out to be. */
base->event_tv = *tv;
}
void