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 02e64a7..d56286a 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);