diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-30 08:12:20 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-30 08:12:20 +0000 | 
| commit | 921c1a63009394047b963930cfd49fea60017599 (patch) | |
| tree | 5fee4f4538985a1ce2043268ab10c2a76596d2ee /audio/unix.c | |
| parent | 734b3f84c1e48f241bf1004e57a86fa898d083a5 (diff) | |
Fix behaviour when no adapter is connected
Diffstat (limited to 'audio/unix.c')
| -rw-r--r-- | audio/unix.c | 3 | 
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;  	} | 
