summaryrefslogtreecommitdiffstats
path: root/audio/unix.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-30 08:12:20 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-30 08:12:20 +0000
commit921c1a63009394047b963930cfd49fea60017599 (patch)
tree5fee4f4538985a1ce2043268ab10c2a76596d2ee /audio/unix.c
parent734b3f84c1e48f241bf1004e57a86fa898d083a5 (diff)
Fix behaviour when no adapter is connected
Diffstat (limited to 'audio/unix.c')
-rw-r--r--audio/unix.c3
1 files changed, 2 insertions, 1 deletions
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;
}