diff options
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); } |