Diff between 68adb4d1b7f24cb4ee3a68c896efe55530da7932 and b7023510c929eeca6f03da5194fd625fdc371f7a
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/a2dp.c | +2 | -1 | modified |
Full Patch
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 2765122..47b5dd7 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2522,7 +2522,8 @@ static void confirm_cb(GIOChannel *io, gpointer data)
if (!setup || !setup->stream)
goto drop;
- if (setup->io) {
+ if (setup->io || avdtp_stream_get_transport(setup->stream,
+ NULL, NULL, NULL, NULL)) {
error("transport channel already exists");
goto drop;
}