summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);