Diff between 7be98f21d6490fdf10ee85f1715838c4168b48e3 and 086b653b66ac24db7ae130801a404aa5d024240b

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +2 -6 modified

Full Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 215f4db..c6973ae 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -723,16 +723,12 @@ static void open_cfm(struct avdtp *session, struct avdtp_local_sep *sep,
 	if (err) {
 		setup->stream = NULL;
 		setup->err = err;
+		if (setup->start)
+			finalize_resume(setup);
 	}
 
 	finalize_config(setup);
 
-	if (!setup->start || !err)
-		return;
-
-	setup->start = FALSE;
-	finalize_resume(setup);
-
 	return;
 }