Skip to content

Commit

Permalink
Remove assert on network statistics processing code (#2028)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany authored Jun 28, 2021
1 parent aa183e8 commit d77bae1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/cpp/statistics/rtps/StatisticsBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,8 @@ void StatisticsParticipantImpl::process_network_sequence(
value.data.dst_locator(to_statistics_type(reception_locator));
value.first_sequence = seq.sequence;
}
else
else if (seq.sequence != value.seq_data.sequence)
{
// We shouldn't receive the same sequence twice
assert(seq.sequence != value.seq_data.sequence);
// Detect discontinuity. We will only notify in that case
should_notify = seq.sequence != (value.seq_data.sequence + 1);
if (should_notify)
Expand Down

0 comments on commit d77bae1

Please sign in to comment.