From 921c1a63009394047b963930cfd49fea60017599 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 30 Aug 2007 08:12:20 +0000 Subject: Fix behaviour when no adapter is connected --- audio/unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/unix.c') diff --git a/audio/unix.c b/audio/unix.c index d980861f..cee56f8a 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -574,7 +574,8 @@ static void cfg_event(struct unix_client *client, struct ipc_packet *pkt, int le if (!manager_find_device(&bdaddr, NULL, FALSE)) { if (!bacmp(&bdaddr, BDADDR_ANY)) goto failed; - manager_create_device(&bdaddr, create_cb, client); + if (!manager_create_device(&bdaddr, create_cb, client)) + goto failed; return; } -- cgit