--- audio/headset.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/audio/headset.c b/audio/headset.c index 15d3672..0176937 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -573,6 +573,7 @@ static void sco_connect_cb(GIOChannel *chan, GError *err, gpointer user_data) if (err) { error("%s", err->message); + p->err = -errno; if (p && p->msg) error_connection_attempt_failed(dev->conn, p->msg, p->err); -- 1.6.3.3 -- Luiz Augusto von Dentz Computer Engineer
From dfcc6b0bfd8ed75630968dbb4967c31f6a0dd39a Mon Sep 17 00:00:00 2001 From: Luiz Augusto Von Dentz <luiz.dentz-von@xxxxxxxxx> Date: Fri, 5 Mar 2010 14:19:58 +0200 Subject: [PATCH 10/11] Fix not emitting error properly when sco connection fails --- audio/headset.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/audio/headset.c b/audio/headset.c index 15d3672..0176937 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -573,6 +573,7 @@ static void sco_connect_cb(GIOChannel *chan, GError *err, gpointer user_data) if (err) { error("%s", err->message); + p->err = -errno; if (p && p->msg) error_connection_attempt_failed(dev->conn, p->msg, p->err); -- 1.6.3.3