summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}