From fed7e6133a37b39d085b9483e193b38d64f66261 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 5 Jun 2006 01:36:58 +0200 Subject: [PATCH 1/1] http_send: shutdown clients even if status is not yet HTTP_STREAMING It's better to let the client reconnect than to send a stream it did not expect. Clean up a superfluous return statement. --- http_send.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/http_send.c b/http_send.c index 6aa82e44..08d20ec4 100644 --- a/http_send.c +++ b/http_send.c @@ -124,7 +124,6 @@ static void http_shutdown_client(struct http_client *hc, const char *msg) } list_del(&hc->node); free(hc); - return; } static void http_shutdown_clients_real(void) @@ -137,8 +136,7 @@ static void http_shutdown_clients(void) { struct http_client *hc, *tmp; list_for_each_entry_safe(hc, tmp, &clients, node) - if (hc->status == HTTP_STREAMING) - http_shutdown_client(hc, "afs request"); + http_shutdown_client(hc, "afs request"); } static int http_send_msg(struct http_client *hc, const char *msg) -- 2.39.2