Fixed missing generation estimator reset within the packet decoder
This commit is contained in:
parent
7a7a24ee2c
commit
444dea13c5
@ -28,10 +28,19 @@ PacketDecoder::~PacketDecoder() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PacketDecoder::reset() {
|
void PacketDecoder::reset() {
|
||||||
|
{
|
||||||
std::lock_guard buffer_lock(this->packet_buffer_lock);
|
std::lock_guard buffer_lock(this->packet_buffer_lock);
|
||||||
for(auto& buffer : this->_command_fragment_buffers) {
|
for(auto& buffer : this->_command_fragment_buffers) {
|
||||||
buffer.reset();
|
buffer.reset();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
std::lock_guard estimator_lock{this->incoming_generation_estimator_lock};
|
||||||
|
for(auto& estimator : this->incoming_generation_estimators) {
|
||||||
|
estimator.reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PacketProcessResult PacketDecoder::process_incoming_data(PacketParser &packet_parser, std::string& error) {
|
PacketProcessResult PacketDecoder::process_incoming_data(PacketParser &packet_parser, std::string& error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user