File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
examples/cpp/request_reply
src/cpp/rtps/builtin/discovery/participant Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments