diff options
author | Niels Provos <provos@gmail.com> | 2008-10-30 19:38:31 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2008-10-30 19:38:31 +0000 |
commit | 31cfe52662fe14c24f0b6794fe2e16cc3aac0696 (patch) | |
tree | fdd4dfb7d80aadf6c30be555e7f8f1546abea019 /event.c | |
parent | c97ee898dca9b1d18cddb0dcc0cf2c9bb3346065 (diff) | |
download | libevent-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |