From 4e9eba2399c5ea71732b58d282f440ecdebbf9e6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 4 Mar 2008 17:45:37 +0000 Subject: Start polling right away rather than waiting for the first poll cycle. --- daemon/poll-engine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/poll-engine.c b/daemon/poll-engine.c index 58c9dce..0d0f934 100644 --- a/daemon/poll-engine.c +++ b/daemon/poll-engine.c @@ -439,6 +439,9 @@ prep_timer (mstime when, void* arg) if (server_timer (poll->interval, poller_timer, poll) == -1) log_error ("couldn't setup poller timer"); + /* Run the poll the first time */ + poller_timer (when, poll); + /* Setup the next poller anywhere between 0 and 750 ms */ next = rand () % 750; server_oneshot (next, prep_timer, poll->next); -- cgit v1.2.3