From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This prevent to disconnect AVRCP when doing e.g. Audio.Disconnect --- audio/avctp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/audio/avctp.c b/audio/avctp.c index e9b8e40..b8cb36e 100644 --- a/audio/avctp.c +++ b/audio/avctp.c @@ -1021,7 +1021,7 @@ struct avctp *avctp_connect(const bdaddr_t *src, const bdaddr_t *dst) void avctp_disconnect(struct avctp *session) { - if (session->io) + if (!session->io) return; avctp_set_state(session, AVCTP_STATE_DISCONNECTED); -- 1.7.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html