From: Martin Mares Date: Thu, 29 Dec 2011 08:42:55 +0000 (+0100) Subject: Bugfix: Initial download slept too much X-Git-Tag: v1.1~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a5465283dc245b6d303018a14b76df80b004b187;p=arexx.git Bugfix: Initial download slept too much --- 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); }