commit | 753c8706f5770bcf9e5327c498caba661df8ef58 | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Thu Aug 10 16:42:09 2006 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Aug 10 16:42:09 2006 +0200 |
tree | 17267bf63c3b9cfc3d899045f32306ae4281158b | |
parent | 529bb1adffc926414f113df3d1bfde73a8db6327 [diff] [blame] |
server: Only call gettimeofday once per poll loop.
diff --git a/server/timer.c b/server/timer.c index d1c035b..2640dd8 100644 --- a/server/timer.c +++ b/server/timer.c
@@ -156,7 +156,7 @@ if (!expire->sec && !expire->usec) { /* special case: use now + period as first expiration */ - gettimeofday( &timer->when, NULL ); + timer->when = current_time; add_timeout( &timer->when, period ); } else