]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
dccp_send: fix sending of header packets
authorAndre <maan@baader.(none)>
Sat, 25 Mar 2006 01:00:46 +0000 (02:00 +0100)
committerAndre <maan@baader.(none)>
Sat, 25 Mar 2006 01:00:46 +0000 (02:00 +0100)
The current code sends the header before _each_ packet, rather than only
once. Fix is trivial.

dccp_send.c

index 02e64a7aebe6819aa6733544dc6d32ec8020b9a5..d56286a6874cb5d56dcb4c427fa4dc05bc001d52 100644 (file)
@@ -162,6 +162,7 @@ static void dccp_send(__unused struct audio_format *af,
                                dccp_shutdown_client(dc);
                                continue;
                        }
+                       dc->header_sent = 1;
                        ret = write_ok(dc->fd);
                        if (ret < 0) {
                                dccp_shutdown_client(dc);