From 111494219a1d04b06c129a1d070d397245bcec05 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Fri, 26 Mar 2021 09:33:59 +0100 Subject: [PATCH] Refs 11001. Fix locator support check on ReceiverResource. Signed-off-by: Miguel Company --- src/cpp/rtps/network/ReceiverResource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/rtps/network/ReceiverResource.cpp b/src/cpp/rtps/network/ReceiverResource.cpp index 35449dc759d..1762c30f340 100644 --- a/src/cpp/rtps/network/ReceiverResource.cpp +++ b/src/cpp/rtps/network/ReceiverResource.cpp @@ -51,7 +51,7 @@ ReceiverResource::ReceiverResource( }; LocatorMapsToManagedChannel = [&transport, locator](const Locator_t& locatorToCheck) -> bool { - return transport.DoInputLocatorsMatch(locator, locatorToCheck); + return locator.kind == locatorToCheck.kind && transport.DoInputLocatorsMatch(locator, locatorToCheck); }; }