From f458280b1aa97dbfcbf51cab006058b44c848654 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Apr 2006 00:18:41 +0000 Subject: [PATCH] * don't call dbus_connection_get_is_connected() for a NULL dbus connection (closes #26) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1193 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-client/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/avahi-client/client.c b/avahi-client/client.c index 4ee8e41..90686fc 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -863,6 +863,7 @@ int avahi_client_is_connected(AvahiClient *client) { assert(client); return + client->bus && dbus_connection_get_is_connected(client->bus) && (client->state == AVAHI_CLIENT_S_RUNNING || client->state == AVAHI_CLIENT_S_REGISTERING || client->state == AVAHI_CLIENT_S_COLLISION); } -- 2.39.5