]> git.meshlink.io Git - catta/commitdiff
* don't call dbus_connection_get_is_connected() for a NULL dbus connection (closes...
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2006 00:18:41 +0000 (00:18 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Apr 2006 00:18:41 +0000 (00:18 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1193 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-client/client.c

index 4ee8e41690a2e6fdaf65fe748077392ab2f28124..90686fc6fabc8d635db35e9b700ce8909aaf0581 100644 (file)
@@ -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);
 }