From: Lennart Poettering Date: Mon, 14 Nov 2005 23:22:39 +0000 (+0000) Subject: don't fail if leaving a multicast group fails X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=01bba04c7ba0dfe48723f489349638a2b063df1a;p=catta don't fail if leaving a multicast group fails git-svn-id: file:///home/lennart/svn/public/avahi/trunk@963 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/iface.c b/avahi-core/iface.c index b466f48..f639821 100644 --- a/avahi-core/iface.c +++ b/avahi-core/iface.c @@ -206,15 +206,12 @@ static int interface_mdns_mcast_join(AvahiInterface *i, int join) { avahi_proto_to_string(i->protocol), avahi_address_snprint(at, sizeof(at), &i->local_mcast_address)); - if (i->protocol == AVAHI_PROTO_INET6) { - if (avahi_mdns_mcast_join_ipv6(i->monitor->server->fd_ipv6, &i->local_mcast_address.data.ipv6, i->hardware->index, join) < 0) - return -1; - - } else { + if (i->protocol == AVAHI_PROTO_INET6) + avahi_mdns_mcast_join_ipv6(i->monitor->server->fd_ipv6, &i->local_mcast_address.data.ipv6, i->hardware->index, join); + else { assert(i->protocol == AVAHI_PROTO_INET); - if (avahi_mdns_mcast_join_ipv4(i->monitor->server->fd_ipv4, &i->local_mcast_address.data.ipv4, i->hardware->index, join) < 0) - return -1; + avahi_mdns_mcast_join_ipv4(i->monitor->server->fd_ipv4, &i->local_mcast_address.data.ipv4, i->hardware->index, join); } i->mcast_joined = join;