From 00b12197a5fb7bd783538c1fedf3e09c5c1e9ba8 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sun, 30 Oct 2005 04:13:59 +0000 Subject: [PATCH] Re-arrange. --- src/main/interlink.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/interlink.c b/src/main/interlink.c index c4e5f8f3c..f7a4b6206 100644 --- a/src/main/interlink.c +++ b/src/main/interlink.c @@ -392,13 +392,11 @@ bind_to_af_unix(void) if (errno != EADDRINUSE) report_af_unix_error("bind()", errno); - if (++attempts <= MAX_BIND_TRIES) { - elinks_usleep(BIND_TRIES_DELAY * attempts); - close(s_info_listen.fd); - - } else { + if (++attempts > MAX_BIND_TRIES) goto free_and_error; - } + + elinks_usleep(BIND_TRIES_DELAY * attempts); + close(s_info_listen.fd); } /* Listen and accept. */