X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=a530a181e5bdc566d731adf4ef268a4fac17bd2f;hb=72d73eb53316768a5a3527cf56afad7158d9ef4d;hp=2c918fc8a53ef56c85dd7ae77b04a1ed63953f64;hpb=10c65c7ac06008347003fd39aeb513efaa741964;p=paraslash.git diff --git a/http_send.c b/http_send.c index 2c918fc8..a530a181 100644 --- a/http_send.c +++ b/http_send.c @@ -85,10 +85,10 @@ static void http_send(long unsigned current_chunk, list_for_each_entry_safe(sc, tmp, &hss->client_list, node) { struct private_http_sender_data *phsd = sc->private_data; - if (phsd->status != HTTP_STREAMING) - continue; - send_chunk(sc, hss, 0, current_chunk, buf, len, header_buf, - header_len); + + if (phsd->status == HTTP_STREAMING) + send_chunk(sc, hss, current_chunk, buf, len, + header_buf, header_len); } }