diff options
author | Stef Walter <stef@memberwebs.com> | 2008-03-04 17:45:37 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-03-04 17:45:37 +0000 |
commit | 4e9eba2399c5ea71732b58d282f440ecdebbf9e6 (patch) | |
tree | ae4d96f52275838e1339760259c53929aed7d5f7 | |
parent | a2538698f621d50768e776cdead73d78c4a174de (diff) |
Start polling right away rather than waiting for the first poll cycle.
-rw-r--r-- | daemon/poll-engine.c | 3 |
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); |