From: Andre Date: Sun, 4 Jun 2006 23:36:58 +0000 (+0200) Subject: http_send: shutdown clients even if status is not yet HTTP_STREAMING X-Git-Tag: v0.2.14~81 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=fed7e6133a37b39d085b9483e193b38d64f66261;hp=7cff238daecde2823204f6abfeb9a888161baa84 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. --- 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)