Skip to content

Commit

Permalink
Refs #7920. Fix on intraprocess_heartbeat.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Apr 30, 2020
1 parent 39720e4 commit 1f431ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cpp/rtps/writer/StatefulWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,10 @@ bool StatefulWriter::intraprocess_heartbeat(
this->getAttributes().durabilityKind < TRANSIENT_LOCAL)
{
SequenceNumber_t last_irrelevance = reader_proxy->changes_low_mark();
reader->processGapMsg(m_guid, first_seq, SequenceNumberSet_t(last_irrelevance + 1));
if (first_seq <= last_irrelevance)
{
reader->processGapMsg(m_guid, first_seq, SequenceNumberSet_t(last_irrelevance + 1));
}
}
}
}
Expand Down

0 comments on commit 1f431ff

Please sign in to comment.