From f269e27ce7e39e6484cf02a137dcda7458a7fd85 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 6 Jun 2008 10:20:21 +0000 Subject: Fix the last remains of sending helpers --- serial/manager.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'serial') diff --git a/serial/manager.c b/serial/manager.c index a9bc0968..64f2203a 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -234,7 +234,8 @@ static void open_notify(int fd, int err, struct pending_connect *pc) dbus_message_append_args(reply, DBUS_TYPE_STRING, &pc->dev, DBUS_TYPE_INVALID); - send_message_and_unref(pc->conn, reply); + dbus_connection_send(pc->conn, reply, NULL); + dbus_message_unref(reply); /* Send the D-Bus signal */ dbus_connection_emit_signal(pc->conn, SERIAL_MANAGER_PATH, @@ -453,7 +454,8 @@ static DBusMessage *create_channel_port(DBusConnection *conn, dbus_message_append_args(reply, DBUS_TYPE_STRING, &ppath, DBUS_TYPE_INVALID); - send_message_and_unref(conn, reply); + dbus_connection_send(conn, reply, NULL); + dbus_message_unref(reply); dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH, SERIAL_MANAGER_INTERFACE, "PortCreated" , -- cgit