diff options
-rw-r--r-- | audio/manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/manager.c b/audio/manager.c index 20b91435..6eebce94 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -1113,8 +1113,9 @@ static void register_devices_stored(const char *adapter) bacpy(&default_src, BDADDR_ANY); dev_id = hci_get_route(&default_src); if (dev_id < 0) - hci_devba(dev_id, &default_src); - + return; + + hci_devba(dev_id, &default_src); if (bacmp(&default_src, &src) != 0) return; |