Skip to content

Commit

Permalink
Refs #21280: Move increase sent sample inside add_change
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed Jul 22, 2024
1 parent 62c38f0 commit e23976d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/cpp/rtps_entities/WriterApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,9 @@ bool WriterApp::add_change_to_history()

if (serialize_payload(data_, ch->serializedPayload))
{
++samples_sent_;

if (writer_history_->add_change(ch))
{
++samples_sent_;
ret = true;
}
else
Expand Down

0 comments on commit e23976d

Please sign in to comment.