]> git.sesse.net Git - greproxy/commitdiff
RSEncoder bugfix that did not get into the previous commit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 11:48:57 +0000 (12:48 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 11:48:57 +0000 (12:48 +0100)
rsencoder.cpp

index dfdbe86a4f62de6de3f609a9214393452b62936f..719d548bde48dcaa073181c761137e59a60993b4 100644 (file)
@@ -75,9 +75,7 @@ void RSEncoder::finish_group()
 
                        const char *sdata = reinterpret_cast<const char *>(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();