Skip to content

Instantly share code, notes, and snippets.

@alexeiz
Created July 31, 2017 05:38
Show Gist options
  • Save alexeiz/bf0b4406db6862f2459daea279b60649 to your computer and use it in GitHub Desktop.
Save alexeiz/bf0b4406db6862f2459daea279b60649 to your computer and use it in GitHub Desktop.
Avahi-browse continue on error
diff --git a/avahi-utils/avahi-browse.c b/avahi-utils/avahi-browse.c
index 4101895..ab56eaa 100644
--- a/avahi-utils/avahi-browse.c
+++ b/avahi-utils/avahi-browse.c
@@ -375,8 +375,12 @@ static void browse_service_type(Config *c, const char *stype, const char *domain
service_browser_callback,
c))) {
- fprintf(stderr, _("avahi_service_browser_new() failed: %s\n"), avahi_strerror(avahi_client_errno(client)));
- avahi_simple_poll_quit(simple_poll);
+ fprintf(stderr,
+ _("avahi_service_browser_new() failed: stype[%s] domain[%s]: %s\n"),
+ stype,
+ domain,
+ avahi_strerror(avahi_client_errno(client)));
+ return;
}
browsed_types = avahi_string_list_add(browsed_types, stype);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment