summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-09-09 15:18:27 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-09-09 19:47:14 -0300
commitc0296a9dde463495975140e7fb7f689a347807d6 (patch)
tree8db2fe54052fa2566d0ce365842e96943c104b35 /audio
parent8b783303433f7c25c2a888034a6da369a7e9a731 (diff)
Cancels the pending request from agent side when receiving a NoReply
Diffstat (limited to 'audio')
-rw-r--r--audio/avdtp.c5
-rw-r--r--audio/control.c4
-rw-r--r--audio/manager.c4
3 files changed, 0 insertions, 13 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index b052b927..592322f8 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -2715,11 +2715,6 @@ static void auth_cb(DBusError *derr, void *user_data)
if (derr && dbus_error_is_set(derr)) {
error("Access denied: %s", derr->message);
- if (dbus_error_has_name(derr, DBUS_ERROR_NO_REPLY)) {
- debug("Canceling authorization request");
- btd_cancel_authorization(&session->server->src,
- &session->dst);
- }
connection_lost(session, -EACCES);
return;
diff --git a/audio/control.c b/audio/control.c
index 15e38c99..4792b4ba 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -630,10 +630,6 @@ static void auth_cb(DBusError *derr, void *user_data)
if (derr && dbus_error_is_set(derr)) {
error("Access denied: %s", derr->message);
- if (dbus_error_has_name(derr, DBUS_ERROR_NO_REPLY)) {
- debug("Canceling authorization request");
- btd_cancel_authorization(&session->src, &session->dst);
- }
avctp_unref(session);
return;
diff --git a/audio/manager.c b/audio/manager.c
index deeb375c..5af175c3 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -455,10 +455,6 @@ static void auth_cb(DBusError *derr, void *user_data)
if (derr && dbus_error_is_set(derr)) {
error("Access denied: %s", derr->message);
- if (dbus_error_has_name(derr, DBUS_ERROR_NO_REPLY)) {
- debug("Canceling authorization request");
- btd_cancel_authorization(&device->src, &device->dst);
- }
headset_set_state(device, HEADSET_STATE_DISCONNECTED);
} else {