diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-08-08 15:42:34 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-08 17:28:40 +0300 |
commit | 991f850c04a5f18c989c4cd85b193b0960053cde (patch) | |
tree | 04382c332263056376dcd2c4d03846a9f681dbbd /android/avdtp.c | |
parent | 6e01436e9b09b038c358b0695548a7a2c3059bdb (diff) | |
download | bluez-991f850c04a5f18c989c4cd85b193b0960053cde.tar.gz |
android/a2dp: Fix for PTS testcase
This patch is a fix for PTS TC_SRC_REL_BV_01_I
PTS expects us to CLOSE stream not to ABORT the stream when
disconnecting A2DP.
Diffstat (limited to 'android/avdtp.c')
-rw-r--r-- | android/avdtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/avdtp.c b/android/avdtp.c index 85ef94b3a..3985fb3ba 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -2180,7 +2180,8 @@ void avdtp_shutdown(struct avdtp *session) for (l = session->streams; l; l = g_slist_next(l)) { struct avdtp_stream *stream = l->data; - if (stream->abort_int || avdtp_abort(session, stream) == 0) + if (stream->abort_int || + avdtp_close(session, stream, TRUE) == 0) aborting = true; } |