From 36b26283cee31af9509ee372f9787f94830a85b7 Mon Sep 17 00:00:00 2001 From: Iulia Tanasescu Date: Fri, 25 Oct 2024 17:28:41 +0300 Subject: [PATCH] transport: Send reply to select/unselect When a transport is selected from bluetoothctl, a reply is expected. Currently, if the method call is successful, no reply is sent, causing the following error message in bluetoothctl: transport.Failed to select: org.freedesktop.DBus.Error.NoReply The same error can be reproduced for the unselect method. This commit updates the select and unselect methods to send reply messages. --- profiles/audio/transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 5646b2004..0f7909a94 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1483,7 +1483,7 @@ static DBusMessage *select_transport(DBusConnection *conn, DBusMessage *msg, transport_update_playing(transport, TRUE); } - return NULL; + return dbus_message_new_method_return(msg); } static DBusMessage *unselect_transport(DBusConnection *conn, DBusMessage *msg, @@ -1496,7 +1496,7 @@ static DBusMessage *unselect_transport(DBusConnection *conn, DBusMessage *msg, transport_update_playing(transport, FALSE); } - return NULL; + return dbus_message_new_method_return(msg); } static void sink_state_changed(struct btd_service *service, -- 2.47.3