summaryrefslogtreecommitdiff
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-15 17:41:40 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-15 17:50:23 +0300
commita59e82103a2b47c5d8039a0c85394c52d07a4252 (patch)
tree3a3ec81e3201c6142e674051f8f6a94bc9cf7d23 /audio/a2dp.c
parent2b3bf7b241b3c9eff4dcade1f574096b3e60d3c9 (diff)
downloadbluez-a59e82103a2b47c5d8039a0c85394c52d07a4252.tar.gz
AVDTP: Fix responding to ABORT with reject
ABORT command cannot be rejected
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index d9dcead5f..fafff87e7 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -1177,7 +1177,7 @@ static void close_cfm(struct avdtp *session, struct avdtp_local_sep *sep,
g_timeout_add(RECONFIGURE_TIMEOUT, a2dp_reconfigure, setup);
}
-static gboolean abort_ind(struct avdtp *session, struct avdtp_local_sep *sep,
+static void abort_ind(struct avdtp *session, struct avdtp_local_sep *sep,
struct avdtp_stream *stream, uint8_t *err,
void *user_data)
{
@@ -1193,13 +1193,13 @@ static gboolean abort_ind(struct avdtp *session, struct avdtp_local_sep *sep,
setup = find_setup_by_session(session);
if (!setup)
- return TRUE;
+ return;
finalize_setup_errno(setup, -ECONNRESET, finalize_suspend,
finalize_resume,
finalize_config);
- return TRUE;
+ return;
}
static void abort_cfm(struct avdtp *session, struct avdtp_local_sep *sep,