]> git.meshlink.io Git - catta/blobdiff - avahi-discover-standalone/main.c
small fix
[catta] / avahi-discover-standalone / main.c
index 156b76d2125c3194c5cdebc2f2686e2651df6e74..1075088a771ef773efb4b26ffe0b6ecf3e5b811b 100644 (file)
@@ -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");