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.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
transport_update_playing(transport, TRUE);
}
- return NULL;
+ return dbus_message_new_method_return(msg);
}
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,