commit | 9cec7f8d2f69aa13474d6943f3e3edcc15f85899 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@nokia.com> | Wed Sep 16 14:15:22 2009 +0300 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Wed Sep 16 14:15:22 2009 +0300 |
tree | 6d9839e706c7194ee16389b1cd12faa6839dd3f2 | |
parent | de310b61216299ae436f49817015ed33bc95c268 [diff] |
Fix AVDTP suspend while closing We should reject any suspend request if we've already started the close procedure for a stream.
diff --git a/audio/avdtp.c b/audio/avdtp.c index 41ded83..f6441c7 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c
@@ -3249,7 +3249,7 @@ if (!g_slist_find(session->streams, stream)) return -EINVAL; - if (stream->lsep->state <= AVDTP_STATE_OPEN) + if (stream->lsep->state <= AVDTP_STATE_OPEN || stream->close_int) return -EINVAL; memset(&req, 0, sizeof(req));