From: Andre Noll <maan@systemlinux.org>
Date: Sat, 19 Jan 2008 12:09:22 +0000 (+0100)
Subject: Simplify http_open().
X-Git-Tag: v0.3.1~81
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=caaa42217811ca2c3a0e275af9dc99f80b5a8b75;p=paraslash.git

Simplify http_open().

No need to shutdown the clients if listen failed: There
can not possibly exist any connected clients at this point.
---

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));