diff --git a/src/cpp/rtps/writer/ReaderProxy.cpp b/src/cpp/rtps/writer/ReaderProxy.cpp index acbf37aa6d6..f77588a9752 100644 --- a/src/cpp/rtps/writer/ReaderProxy.cpp +++ b/src/cpp/rtps/writer/ReaderProxy.cpp @@ -408,9 +408,8 @@ bool ReaderProxy::requested_changes_set( isSomeoneWasSetRequested = true; } } - else if (sit > min_seq_in_history) + else if ((sit > min_seq_in_history) && (sit > changes_low_mark_)) { - assert(sit > changes_low_mark_); gap_builder.add(sit); } });