From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> When acting as initiator stream io already has a reference to io channel to be able to cancel if necessary. --- audio/avdtp.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/audio/avdtp.c b/audio/avdtp.c index 0d50627..fdac1e3 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c @@ -895,7 +895,9 @@ static void handle_transport_connect(struct avdtp *session, GIOChannel *io, return; } - stream->io = g_io_channel_ref(io); + if (stream->io == NULL) + stream->io = g_io_channel_ref(io); + stream->omtu = omtu; stream->imtu = imtu; -- 1.7.1 -- 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