Skip to content

Commit a6507c0

Browse files
committed
pass right operation value to sMulticastGroupHandler according to join value
1 parent a6f44fd commit a6507c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inet/UDPEndPointImplSockets.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ CHIP_ERROR UDPEndPointImplSockets::IPv6JoinLeaveMulticastGroupImpl(InterfaceId a
821821
#if CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API
822822
if (sMulticastGroupHandler != nullptr)
823823
{
824-
return sMulticastGroupHandler(aInterfaceId, aAddress, MulticastOperation::kJoin);
824+
return sMulticastGroupHandler(aInterfaceId, aAddress, join ? MulticastOperation::kJoin : MulticastOperation::kLeave);
825825
}
826826
#endif // CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API
827827

0 commit comments

Comments
 (0)