summaryrefslogtreecommitdiffstats
path: root/examples/client-browse-services.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/client-browse-services.c')
-rw-r--r--examples/client-browse-services.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client-browse-services.c b/examples/client-browse-services.c
index c5a1cbd..00703e6 100644
--- a/examples/client-browse-services.c
+++ b/examples/client-browse-services.c
@@ -145,8 +145,8 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
/* Called whenever the client or server state changes */
- if (state == AVAHI_CLIENT_DISCONNECTED) {
- fprintf(stderr, "Server connection terminated.\n");
+ if (state == AVAHI_CLIENT_FAILURE) {
+ fprintf(stderr, "Server connection failre: %s\n", avahi_strerror(avahi_client_errno(c)));
avahi_simple_poll_quit(simple_poll);
}
}