from trunk: clear the timer cache on entering event loop; reported by Victor Chang

svn:r945
This commit is contained in:
Niels Provos 2008-10-30 19:40:35 +00:00
parent 111ddeddac
commit b93c182ff3
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Changes in 1.4.9-stable:
o event_add would not return error for some backends; from Dean McNamee
o Clear the timer cache on entering the event loop; reported by Victor Chang
Changes in 1.4.8-stable:
o Match the query in DNS replies to the query in the request; from Vsevolod Stakhov.

View File

@ -472,6 +472,9 @@ event_base_loop(struct event_base *base, int flags)
struct timeval *tv_p;
int res, done;
/* clear time cache */
base->tv_cache.tv_sec = 0;
if (&base->sig.ev_signal_added)
evsignal_base = base;
done = 0;