Skip to content

Commit

Permalink
Refs #22339: Take writer's mutex before rproxy->stop() and check_acke…
Browse files Browse the repository at this point in the history
…d_status()

Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Dec 11, 2024
1 parent 9de8ea9 commit 211423d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/rtps/writer/StatefulWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,9 +1217,9 @@ bool StatefulWriter::matched_reader_remove(
const GUID_t& reader_guid)
{
ReaderProxy* rproxy = nullptr;
std::lock_guard<RecursiveTimedMutex> lock(mp_mutex);

{
std::lock_guard<RecursiveTimedMutex> lock(mp_mutex);
std::lock_guard<LocatorSelectorSender> guard_locator_selector_general(locator_selector_general_);
std::lock_guard<LocatorSelectorSender> guard_locator_selector_async(locator_selector_async_);

Expand Down

0 comments on commit 211423d

Please sign in to comment.