From 6b344acdd6c268f63630d7802ffbb49d557eea05 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 4 Sep 2013 09:48:46 +0000 Subject: [PATCH] fix: wrong check --- src/transport/plugin_transport_http_server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index bcb8e53ae..67a00dc40 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -2124,14 +2124,15 @@ server_start (struct HTTP_Server_Plugin *plugin) } msg = "No"; - if ((plugin->server_v6 == NULL) && (plugin->server_v6 == NULL)) + if ((plugin->server_v6 == NULL) && (plugin->server_v4 == NULL)) { GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, "%s %s server component started on port %u\n", msg, plugin->name, plugin->port); + sleep (10); return GNUNET_SYSERR; } - else if ((plugin->server_v6 != NULL) && (plugin->server_v6 != NULL)) + else if ((plugin->server_v6 != NULL) && (plugin->server_v4 != NULL)) msg = "IPv4 and IPv6"; else if (plugin->server_v6 != NULL) msg = "IPv6"; @@ -2140,7 +2141,7 @@ server_start (struct HTTP_Server_Plugin *plugin) GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, "%s %s server component started on port %u\n", msg, plugin->name, plugin->port); - + sleep (10); return GNUNET_OK; } -- 2.25.1