From a5465283dc245b6d303018a14b76df80b004b187 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 29 Dec 2011 09:42:55 +0100 Subject: [PATCH] Bugfix: Initial download slept too much --- arexxd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arexxd.c b/arexxd.c index faedc5e..c93ec57 100644 --- a/arexxd.c +++ b/arexxd.c @@ -563,9 +563,11 @@ int main(int argc, char **argv) want_sleep = 1; if (err > 0 && parse_packet(reply)) want_sleep = 0; - want_stats = 1; sigprocmask(SIG_UNBLOCK, &term_sigs, NULL); - sleep(4); + if (want_sleep) { + sleep(4); + want_stats = 1; + } sigprocmask(SIG_BLOCK, &term_sigs, NULL); } -- 2.39.2