* [PATCH] Fix printing D-Bus errors when headset record could not be found
@ 2010-12-27 12:27 Luiz Augusto von Dentz
2010-12-27 15:07 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2010-12-27 12:27 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
When connection is started via headset_config_stream there is no D-Bus
message to reply to.
---
audio/headset.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/audio/headset.c b/audio/headset.c
index 72bf5b6..53a594d 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1445,7 +1445,8 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)
error("Unable to get service record: %s (%d)",
strerror(-err), -err);
p->err = -err;
- error_connect_failed(dev->conn, p->msg, p->err);
+ if (p->msg)
+ error_connect_failed(dev->conn, p->msg, p->err);
goto failed;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix printing D-Bus errors when headset record could not be found
2010-12-27 12:27 [PATCH] Fix printing D-Bus errors when headset record could not be found Luiz Augusto von Dentz
@ 2010-12-27 15:07 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-12-27 15:07 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hi Luiz,
On Mon, Dec 27, 2010, Luiz Augusto von Dentz wrote:
> From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
>
> When connection is started via headset_config_stream there is no D-Bus
> message to reply to.
> ---
> audio/headset.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
Pushed upstream. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-27 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 12:27 [PATCH] Fix printing D-Bus errors when headset record could not be found Luiz Augusto von Dentz
2010-12-27 15:07 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox