diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-22 03:23:26 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-22 03:23:26 +0000 |
commit | a7a78009cae0f94cff8d16430522a8901d1c4b90 (patch) | |
tree | 8783d50bac3401aa6bdd13e5e729c533b3071d3a /hcid/dbus-database.c | |
parent | ffd959d87bdbdfc823b1e7722c09c08c61a2390f (diff) |
Handle local connection disconnects
Diffstat (limited to 'hcid/dbus-database.c')
-rw-r--r-- | hcid/dbus-database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c index 2f904956..8dd327d1 100644 --- a/hcid/dbus-database.c +++ b/hcid/dbus-database.c @@ -337,7 +337,7 @@ static DBusHandlerResult register_service(DBusConnection *conn, sender = dbus_message_get_sender(msg); - if (service_register(sender, ident, name, desc) < 0) + if (service_register(conn, sender, ident, name, desc) < 0) return error_failed(conn, msg, EIO); reply = dbus_message_new_method_return(msg); @@ -367,7 +367,7 @@ static DBusHandlerResult unregister_service(DBusConnection *conn, if (!service->external || strcmp(sender, service->bus_name)) return error_not_authorized(conn, msg); - if (service_unregister(service) < 0) + if (service_unregister(conn, service) < 0) return error_failed(conn, msg, EIO); reply = dbus_message_new_method_return(msg); |