Skip to content

Commit 211423d

Browse files
committed
Refs #22339: Take writer's mutex before rproxy->stop() and check_acked_status()
Signed-off-by: Mario Dominguez <[email protected]>
1 parent 9de8ea9 commit 211423d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/rtps/writer/StatefulWriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1217,9 +1217,9 @@ bool StatefulWriter::matched_reader_remove(
12171217
const GUID_t& reader_guid)
12181218
{
12191219
ReaderProxy* rproxy = nullptr;
1220+
std::lock_guard<RecursiveTimedMutex> lock(mp_mutex);
12201221

12211222
{
1222-
std::lock_guard<RecursiveTimedMutex> lock(mp_mutex);
12231223
std::lock_guard<LocatorSelectorSender> guard_locator_selector_general(locator_selector_general_);
12241224
std::lock_guard<LocatorSelectorSender> guard_locator_selector_async(locator_selector_async_);
12251225

0 commit comments

Comments
 (0)