]> git.sesse.net Git - greproxy/commitdiff
Fix super-stupid bug in Reorderer that only affected greproxy (not tungre).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 23:25:05 +0000 (00:25 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 23:25:05 +0000 (00:25 +0100)
reorderer.cpp

index 2533aadc042064a7577e55c45a56718ad04faa6f..e4cafe124416d19b1ae231fce9d201c69d72f7de 100644 (file)
@@ -80,7 +80,7 @@ void Reorderer::send_packet(uint16_t proto, const string& data, int seq)
                //}
                const string &data = packet_buffer.top().data;
                check_ts_discontinuity(packet_buffer.top().proto, data, silence);
-               sender->send_packet(proto, data, seq);
+               sender->send_packet(packet_buffer.top().proto, data, packet_buffer.top().seq);
                packet_buffer.pop();
                last_seq = front_seq;
                last_sent_packet = now;