Skip to content

Commit

Permalink
Print message when IP_DROP_MEMBERSHIP fails only on VB_EXTRA..
Browse files Browse the repository at this point in the history
This failing will have no consequences since we will soon close the
socket anyway which drops the membership implicitly.
  • Loading branch information
daniel-kristjansson committed Jun 15, 2011
1 parent 792fb59 commit f83332d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythupnp/mmulticastsocketdevice.cpp
Expand Up @@ -92,7 +92,9 @@ MMulticastSocketDevice::~MMulticastSocketDevice()
(setsockopt(socket(), IPPROTO_IP, IP_DROP_MEMBERSHIP,
(char*)(&m_imr), sizeof(m_imr) < 0)))
{
VERBOSE(VB_IMPORTANT, LOC_ERR +
// This isn't really an error, we will drop out of
// the group anyway when we close the socket.
VERBOSE(VB_IMPORTANT|VB_EXTRA, LOC +
"setsockopt - IP_DROP_MEMBERSHIP " + ENO);
}
}
Expand Down

0 comments on commit f83332d

Please sign in to comment.