Skip to content

Commit

Permalink
fix multicast action when disposing socket, drop membership instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeulater committed Jan 17, 2025
1 parent 2fc6d66 commit a8acea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlive/XLive/xnet/Sockets/XSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class XSocketManager
mreq.imr_multiaddr.s_addr = htonl(XSOCK_MUTICAST_ADDR);

setsockopt(
m_systemSockHandle, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char*)&mreq, sizeof(mreq)
m_systemSockHandle, IPPROTO_IP, IP_DROP_MEMBERSHIP, (char*)&mreq, sizeof(mreq)
);
}

Expand Down

0 comments on commit a8acea9

Please sign in to comment.