bluez5: backend-ofono: Fix SCO nodes not created on oFono's CardAdded

oFono's CardAdded signal from can occur after BlueZ's ServicesResolved
signal. In this case the device is created without SCO nodes.
This is fixed by not enforcing device creation on ServicesResolved signal.
This commit is contained in:
Frédéric Danis 2020-07-22 14:48:34 +02:00 committed by Wim Taymans
parent 18da8fd21f
commit ebdaac160c

View file

@ -773,7 +773,7 @@ static int device_update_props(struct spa_bt_device *device,
}
else if (strcmp(key, "ServicesResolved") == 0) {
if (value)
spa_bt_device_check_profiles(device, true);
spa_bt_device_check_profiles(device, false);
}
}
else if (strcmp(key, "UUIDs") == 0) {