Diff between fa1f2e5ee14dd740293fc5f491816cb185c6e7d7 and d7bb2abed626a979037a042c02b9a4027c6eb943

Changed Files

File Additions Deletions Status
profiles/audio/source.c +5 -0 modified

Full Patch

diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index 9fac352..db777e8 100644
--- a/profiles/audio/source.c
+++ b/profiles/audio/source.c
@@ -134,6 +134,11 @@ static void stream_state_changed(struct avdtp_stream *stream,
 	case AVDTP_STATE_IDLE:
 		btd_service_disconnecting_complete(source->service, 0);
 
+		if (source->connect_id > 0) {
+			a2dp_cancel(source->connect_id);
+			source->connect_id = 0;
+		}
+
 		if (source->disconnect_id > 0) {
 			a2dp_cancel(source->disconnect_id);
 			source->disconnect_id = 0;