Skip to content

Commit 80c9eb5

Browse files
committed
WIP
Signed-off-by: Carlosespicur <[email protected]>
1 parent e0c453b commit 80c9eb5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

examples/cpp/request_reply/ServerApp.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ void ServerApp::on_publication_matched(
208208
{
209209
request_reply_error("ServerApp", info.current_count_change
210210
<< " is not a valid value for PublicationMatchedStatus current count change");
211+
212+
// __FLAG__
213+
throw std::runtime_error("ERROR");
214+
/////////////////
211215
}
212216
}
213217

@@ -241,6 +245,9 @@ void ServerApp::on_subscription_matched(
241245
request_reply_error("ServerApp",
242246
info.current_count_change <<
243247
" is not a valid value for SubscriptionMatchedStatus current count change");
248+
// __FLAG__
249+
throw std::runtime_error("ERROR");
250+
/////////////////
244251
}
245252
}
246253

src/cpp/rtps/builtin/discovery/participant/PDP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,8 +1279,8 @@ bool PDP::remove_remote_participant(
12791279
ParticipantProxyData* pdata = nullptr;
12801280

12811281
// Remove it from our vector of RTPSParticipantProxies
1282+
std::lock_guard<std::recursive_mutex> guardPDP(*mp_mutex);
12821283
{
1283-
std::lock_guard<std::recursive_mutex> guardPDP(*mp_mutex);
12841284
for (ResourceLimitedVector<ParticipantProxyData*>::iterator pit = participant_proxies_.begin();
12851285
pit != participant_proxies_.end(); ++pit)
12861286
{

0 commit comments

Comments
 (0)