X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-daemon%2Fdbus-service-browser.c;fp=avahi-daemon%2Fdbus-service-browser.c;h=1515ddfbc164a0c397f19014e78392894c090a60;hb=012a7722a740e683cecc6476f6dcb42f96aacb21;hp=29d79b6d4372b55416d12c8f607c424d5bf3acd3;hpb=6014a9885431654d03484ae5ed0aded7268adfeb;p=catta diff --git a/avahi-daemon/dbus-service-browser.c b/avahi-daemon/dbus-service-browser.c index 29d79b6..1515ddf 100644 --- a/avahi-daemon/dbus-service-browser.c +++ b/avahi-daemon/dbus-service-browser.c @@ -105,10 +105,6 @@ void avahi_dbus_service_browser_callback(AvahiSServiceBrowser *b, AvahiIfIndex i assert(b); assert(i); - i_interface = (int32_t) interface; - i_protocol = (int32_t) protocol; - u_flags = (uint32_t) flags; - m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, avahi_dbus_map_browse_signal_name(event)); if (event == AVAHI_BROWSER_NEW) { @@ -118,6 +114,10 @@ void avahi_dbus_service_browser_callback(AvahiSServiceBrowser *b, AvahiIfIndex i flags |= AVAHI_LOOKUP_RESULT_OUR_OWN; } + i_interface = (int32_t) interface; + i_protocol = (int32_t) protocol; + u_flags = (uint32_t) flags; + if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) { assert(name); assert(type);