diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-15 20:07:32 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-15 20:07:32 +0000 |
commit | 8c73bcb914155e93957c9c2d8a8d029ef258a51f (patch) | |
tree | 3253c2150b3a8db3643a88be954ed766205bb3d8 /hcid | |
parent | 8f94be819dc3173ff0f023bf5a3d41a527a612ed (diff) |
Send the Stopped signal from the right path and interface
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 727ae5b3..8ad499a5 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -216,16 +216,16 @@ static void service_exit(const char *name, void *data) if (service->records) unregister_service_records(service->records); - service_free(service); - dbus_connection_unregister_object_path(conn, path); - message = dbus_message_new_signal(BASE_PATH, MANAGER_INTERFACE, - "ServiceUnregistered"); + message = dbus_message_new_signal(service->object_path, + SERVICE_INTERFACE, "Stopped"); dbus_message_append_args(message, DBUS_TYPE_STRING, &path, DBUS_TYPE_INVALID); send_message_and_unref(conn, message); + service_free(service); + lremove = g_slist_append(lremove, l->data); services = g_slist_remove(services, l->data); } |