From 221adbabd69654d2c35288692683ad3ccb49fdf2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 21 Mar 2007 18:42:27 +0000 Subject: Fix error check for failed connect --- audio/headset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/headset.c') 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); -- cgit