From caaa42217811ca2c3a0e275af9dc99f80b5a8b75 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 19 Jan 2008 13:09:22 +0100 Subject: [PATCH] Simplify http_open(). No need to shutdown the clients if listen failed: There can not possibly exist any connected clients at this point. --- http_send.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http_send.c b/http_send.c index 6b67a6aa..c1a4fc6a 100644 --- a/http_send.c +++ b/http_send.c @@ -314,10 +314,8 @@ static int http_open(void) int ret; listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg); - if (listen_fd < 0) { - http_shutdown_clients(); + if (listen_fd < 0) return listen_fd; - } ret = mark_fd_nonblocking(listen_fd); if (ret < 0) { PARA_EMERG_LOG("%s\n", para_strerror(-ret)); -- 2.39.5