]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_send.c
cleanup: remove redundant 'max length' argument
[paraslash.git] / http_send.c
index 2c918fc8a53ef56c85dd7ae77b04a1ed63953f64..a530a181e5bdc566d731adf4ef268a4fac17bd2f 100644 (file)
@@ -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);
        }
 }