summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-03-04 17:45:37 +0000
committerStef Walter <stef@memberwebs.com>2008-03-04 17:45:37 +0000
commit4e9eba2399c5ea71732b58d282f440ecdebbf9e6 (patch)
treeae4d96f52275838e1339760259c53929aed7d5f7 /daemon
parenta2538698f621d50768e776cdead73d78c4a174de (diff)
Start polling right away rather than waiting for the first poll cycle.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/poll-engine.c3
1 files changed, 3 insertions, 0 deletions
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);