mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 15:14:31 +08:00
Check if btd_device_add_uuid succeeded.
This commit is contained in:
parent
901a2c3041
commit
4ed78c91a7
@ -458,8 +458,11 @@ static void ag_io_cb(GIOChannel *chan, int err, const bdaddr_t *src,
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (!device->headset)
|
||||
if (!device->headset) {
|
||||
btd_device_add_uuid(device->btd_dev, remote_uuid);
|
||||
if (!device->headset)
|
||||
goto drop;
|
||||
}
|
||||
|
||||
if (headset_get_state(device) > HEADSET_STATE_DISCONNECTED) {
|
||||
debug("Refusing new connection since one already exists");
|
||||
|
Loading…
Reference in New Issue
Block a user