From d77bae10894ad65cbc26f17ab735d7a9c9542507 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Mon, 28 Jun 2021 12:50:37 +0200 Subject: [PATCH] Remove assert on network statistics processing code (#2028) Signed-off-by: Miguel Company --- src/cpp/statistics/rtps/StatisticsBase.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cpp/statistics/rtps/StatisticsBase.cpp b/src/cpp/statistics/rtps/StatisticsBase.cpp index 3734578996b..98d80812aec 100644 --- a/src/cpp/statistics/rtps/StatisticsBase.cpp +++ b/src/cpp/statistics/rtps/StatisticsBase.cpp @@ -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)