X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-discover-standalone%2Fmain.c;h=1075088a771ef773efb4b26ffe0b6ecf3e5b811b;hb=cf85bc782ce81b1eb7c9d4b19816dee1c7069458;hp=156b76d2125c3194c5cdebc2f2686e2651df6e74;hpb=8b5cd6ffd9137b14b7ed678f10a551e3911e4a40;p=catta diff --git a/avahi-discover-standalone/main.c b/avahi-discover-standalone/main.c index 156b76d..1075088 100644 --- a/avahi-discover-standalone/main.c +++ b/avahi-discover-standalone/main.c @@ -238,6 +238,7 @@ static void service_resolver_callback(AvahiSServiceResolver *r, AvahiIfIndex int g_assert(r == service_resolver); avahi_s_service_resolver_free(service_resolver); service_resolver = NULL; + return; } if (event == AVAHI_RESOLVER_TIMEOUT) @@ -277,7 +278,7 @@ int main(int argc, char *argv[]) { avahi_set_allocator(avahi_glib_allocator()); - poll_api = avahi_glib_poll_new(NULL); + poll_api = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); xml = glade_xml_new(AVAHI_INTERFACES_DIR"avahi-discover.glade", NULL, NULL); main_window = glade_xml_get_widget(xml, "main_window");