From 01bba04c7ba0dfe48723f489349638a2b063df1a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 14 Nov 2005 23:22:39 +0000 Subject: [PATCH] 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 --- avahi-core/iface.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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; -- 2.39.5