From 9d2f3c94d66fc50b0ba948db04a78ab697d6edd1 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 16 Jun 2012 11:47:27 +0300 Subject: [PATCH] AVDTP: Fix rejecting AVDTP Start if starting flag is set This is now handled by checking if the command collided. --- audio/avdtp.c | 5 ++--- 1 file 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; } -- 2.47.3