]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - send_common.c
http/dccp: Do not send the audio file header twice.
[paraslash.git] / send_common.c
index 200e59ab266e7f9c145e6aa7a3dc65ba25d83f52..8653c330e6b0eb24bacb239c3904062105ea3128 100644 (file)
@@ -159,8 +159,8 @@ void send_chunk(struct sender_client *sc, struct sender_status *ss,
                        if (ret < 0)
                                goto out;
                }
-               sc->header_sent = 1;
        }
+       sc->header_sent = 1;
        ret = send_queued_chunks(sc->fd, sc->cq, max_bytes_per_write);
        if (ret < 0) {
                shutdown_client(sc, ss);