Diff between aa34c8cdee92b17587539a205065daf3f936c1a2 and 8da8df121d005cafc54a0a01808c0f97cefc4eb9
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/source.c | +3 | -0 | modified |
Full Patch
diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index b0abaa3..aca2fcb 100644
--- a/profiles/audio/source.c
+++ b/profiles/audio/source.c
@@ -293,6 +293,9 @@ int source_connect(struct btd_service *service)
if (source->connect_id > 0 || source->disconnect_id > 0)
return -EBUSY;
+ if (source->state == SOURCE_STATE_CONNECTING)
+ return -EBUSY;
+
if (source->stream_state >= AVDTP_STATE_OPEN)
return -EALREADY;