summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2008-10-30 19:38:31 +0000
committerNiels Provos <provos@gmail.com>2008-10-30 19:38:31 +0000
commit31cfe52662fe14c24f0b6794fe2e16cc3aac0696 (patch)
treefdd4dfb7d80aadf6c30be555e7f8f1546abea019 /event.c
parentc97ee898dca9b1d18cddb0dcc0cf2c9bb3346065 (diff)
downloadlibevent-31cfe52662fe14c24f0b6794fe2e16cc3aac0696.tar.gz
clear the timer cache on entering event loop; reported by Victor Chang
svn:r944
Diffstat (limited to 'event.c')
-rw-r--r--event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/event.c b/event.c
index 6034ef36..1ee3df5d 100644
--- a/event.c
+++ b/event.c
@@ -695,6 +695,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;