summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-15 23:48:49 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-15 23:48:49 +0000
commitd60ea3d031b3cbb7afb9b5ac1b911aee0b3e928d (patch)
treee49d2608db2322bb405576c383242d34c38953e5 /hcid
parent2e283d45fed08e9daa5d92d441e7d7c49a5f5a10 (diff)
Send Started signal after message reply
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-service.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 5e064ca9..60034734 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -379,14 +379,6 @@ static DBusHandlerResult service_filter(DBusConnection *conn,
}
dbus_connection_remove_filter(conn, service_filter, service);
- msg = dbus_message_new_signal(service->object_path,
- SERVICE_INTERFACE, "Started");
- if (msg) {
- dbus_message_append_args(msg, DBUS_TYPE_STRING, &new,
- DBUS_TYPE_INVALID);
- send_message_and_unref(conn, msg);
- }
-
if (service->action) {
msg = dbus_message_new_method_return(service->action);
if (msg) {
@@ -404,6 +396,14 @@ static DBusHandlerResult service_filter(DBusConnection *conn,
name_listener_add(conn, new, (name_cb_t) service_exit, service);
+ msg = dbus_message_new_signal(service->object_path,
+ SERVICE_INTERFACE, "Started");
+ if (msg) {
+ dbus_message_append_args(msg, DBUS_TYPE_STRING, &new,
+ DBUS_TYPE_INVALID);
+ send_message_and_unref(conn, msg);
+ }
+
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}