From: Steinar H. Gunderson Date: Sun, 8 Feb 2015 11:48:57 +0000 (+0100) Subject: RSEncoder bugfix that did not get into the previous commit. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=6a75d93c88d8a94e63e0814c5e049572b887fa85;p=greproxy RSEncoder bugfix that did not get into the previous commit. --- diff --git a/rsencoder.cpp b/rsencoder.cpp index dfdbe86..719d548 100644 --- a/rsencoder.cpp +++ b/rsencoder.cpp @@ -75,9 +75,7 @@ void RSEncoder::finish_group() const char *sdata = reinterpret_cast(data); int start_seq = packet_history[0].seq - 1; - for (int i = 0; i < RS_PARITY_SIZE; ++i) { - sender->send_packet(0xffff, string(sdata, size), start_seq - (packet_num - RS_PAYLOAD_SIZE)); - } + sender->send_packet(0xffff, string(sdata, size), start_seq - (packet_num - RS_PAYLOAD_SIZE)); }); packet_history.clear();