summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-16 11:47:27 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-18 11:40:37 +0300
commit9d2f3c94d66fc50b0ba948db04a78ab697d6edd1 (patch)
treeae6d8e9823389890d1432e30c344986d2345e4ec
parent83630251beb6dbd50dd171a9d9040356bf9bc577 (diff)
downloadbluez-9d2f3c94d66fc50b0ba948db04a78ab697d6edd1.tar.gz
AVDTP: Fix rejecting AVDTP Start if starting flag is set
This is now handled by checking if the command collided.
-rw-r--r--audio/avdtp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index eb56c7cdd..041abc3cd 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1795,9 +1795,8 @@ static gboolean avdtp_start_cmd(struct avdtp *session, uint8_t transaction,
stream = sep->stream;
- /* Also reject start cmd if we already initiated start */
- if (sep->state != AVDTP_STATE_OPEN ||
- stream->starting == TRUE) {
+ /* Also reject start cmd if state is not open */
+ if (sep->state != AVDTP_STATE_OPEN) {
err = AVDTP_BAD_STATE;
goto failed;
}