diff options
Diffstat (limited to 'examples/glib-integration.c')
-rw-r--r-- | examples/glib-integration.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/glib-integration.c b/examples/glib-integration.c index bf6eacf..f1830d8 100644 --- a/examples/glib-integration.c +++ b/examples/glib-integration.c @@ -60,10 +60,10 @@ avahi_client_callback (AVAHI_GCC_UNUSED AvahiClient *client, AvahiClientState st g_message ("Avahi Client State Change: %d", state); - if (state == AVAHI_CLIENT_DISCONNECTED) + if (state == AVAHI_CLIENT_FAILURE) { /* We we're disconnected from the Daemon */ - g_message ("Disconnected from the Avahi Daemon"); + g_message ("Disconnected from the Avahi Daemon: %s", avahi_strerror(avahi_client_errno(client))); /* Quit the application */ g_main_loop_quit (loop); |