]> git.sesse.net Git - greproxy/blobdiff - rsencoder.cpp
RSEncoder bugfix that did not get into the previous commit.
[greproxy] / 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();