]> git.meshlink.io Git - catta/commitdiff
don't fail if leaving a multicast group fails
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Nov 2005 23:22:39 +0000 (23:22 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Nov 2005 23:22:39 +0000 (23:22 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@963 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/iface.c

index b466f48838e3ad37fee7996a8b892184e1239c89..f639821876ca5858454b2ae521b3c0c25b0d8a67 100644 (file)
@@ -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;