diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-27 14:17:39 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-27 14:17:39 +0000 |
commit | cb379b6a76ad441dc427e86bd17b47014a85fb7a (patch) | |
tree | ced06c80b9cffbb91746c6839c77e3084f15c139 | |
parent | 2bb0572a896151e0cf838282fb81372fa6c47999 (diff) |
Fix removing last device
-rw-r--r-- | audio/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c index 5df00c2f..ae832f1c 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -814,7 +814,7 @@ static DBusHandlerResult am_remove_device(DBusConnection *conn, default_dev = manager_find_device(BDADDR_ANY, NULL, TRUE); - if (!default_dev) { + if (!default_dev && devices) { l = devices; default_dev = (g_slist_last(l))->data; } |