Skip to content

Commit

Permalink
pass right operation value to sMulticastGroupHandler according to joi…
Browse files Browse the repository at this point in the history
…n value (#35807)
  • Loading branch information
wilbur-se authored Sep 28, 2024
1 parent 4a3923e commit 1608171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inet/UDPEndPointImplSockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ CHIP_ERROR UDPEndPointImplSockets::IPv6JoinLeaveMulticastGroupImpl(InterfaceId a
#if CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API
if (sMulticastGroupHandler != nullptr)
{
return sMulticastGroupHandler(aInterfaceId, aAddress, MulticastOperation::kJoin);
return sMulticastGroupHandler(aInterfaceId, aAddress, join ? MulticastOperation::kJoin : MulticastOperation::kLeave);
}
#endif // CHIP_SYSTEM_CONFIG_USE_PLATFORM_MULTICAST_API

Expand Down

0 comments on commit 1608171

Please sign in to comment.