} else {
report_error ("libhal_ctx_new: Can't create libhal context", error);
}
- dbus_connection_disconnect (_connection);
+ dbus_connection_close (_connection);
dbus_connection_unref (_connection);
_connection = NULL;
} else {
libhal_ctx_free (_context);
}
if (_connection) {
- dbus_connection_disconnect (_connection);
+ dbus_connection_close (_connection);
dbus_connection_unref (_connection);
}
}
hctx = libhal_ctx_new();
if( !hctx)
{
- dbus_connection_disconnect(conn);
+ dbus_connection_close(conn);
dbus_connection_unref(conn);
conn = NULL;
libhal_ctx_free(hctx);
hctx = NULL;
- dbus_connection_disconnect(conn);
+ dbus_connection_close(conn);
dbus_connection_unref(conn);
conn = NULL;
libhal_ctx_free(hctx);
hctx = NULL;
- dbus_connection_disconnect(conn);
+ dbus_connection_close(conn);
dbus_connection_unref(conn);
conn = NULL;