summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-03-21 18:42:27 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-03-21 18:42:27 +0000
commit221adbabd69654d2c35288692683ad3ccb49fdf2 (patch)
tree0507c651741a105b148b7c621c9320f96ea0b3be /audio/headset.c
parent912bb20c21691117acac343003fd0b4c61366db6 (diff)
Fix error check for failed connect
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 1a0013a7..ad97172f 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1183,7 +1183,7 @@ static void get_handles_reply(DBusPendingCall *call, void *data)
if (dbus_set_error_from_message(&derr, reply)) {
error("GetRemoteServiceHandles failed: %s", derr.message);
if (c->msg) {
- if (dbus_error_has_name(&derr, "org.bluez.Error.ConnectFailed"))
+ if (dbus_error_has_name(&derr, "org.bluez.Error.ConnectionAttemptFailed"))
err_connect_failed(c->conn, c->msg, EHOSTDOWN);
else
err_not_supported(c->conn, c->msg);