summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-15 20:33:34 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-15 20:33:34 +0000
commit97650b3f8187b0f8cf8d6f3dfa1c3d6752ef5ca2 (patch)
treea65e8bcbefe357acafa2b2b11f9153c2fecde1c6 /serial
parent6fae334c9cca415a6520f258ee850bb0268fe597 (diff)
serial: fixed missing ProxyCreated signal for stored proxies
Diffstat (limited to 'serial')
-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);