summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--serial/manager.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/serial/manager.c b/serial/manager.c
index 5ccbce7a..f9532ff6 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -1386,6 +1386,11 @@ static int proxy_register(DBusConnection *conn, bdaddr_t *src, const char *path,
return -1;
}
+ dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH,
+ SERIAL_MANAGER_INTERFACE, "ProxyCreated",
+ DBUS_TYPE_STRING, &path,
+ DBUS_TYPE_INVALID);
+
info("Registered proxy:%s path:%s", tty, path);
return 0;
@@ -1492,11 +1497,6 @@ static DBusHandlerResult create_proxy(DBusConnection *conn,
proxy_store(&src, uuidstr, tty, NULL, 0, 0, &ti);
- dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH,
- SERIAL_MANAGER_INTERFACE, "ProxyCreated",
- DBUS_TYPE_STRING, &ppath,
- DBUS_TYPE_INVALID);
-
dbus_message_append_args(reply,
DBUS_TYPE_STRING, &ppath,
DBUS_TYPE_INVALID);