diff options
author | Archie Pusaka <apusaka@chromium.org> | 2020-09-15 11:04:19 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-09-15 09:50:21 -0700 |
commit | 48d8f08a54003c1526cb614d00a16c08b6471aef (patch) | |
tree | 4dbdb92ec2988accfa57393195f448ee0c0fbf78 /plugins | |
parent | 6611b72600c370ec31795ab48a222594c4afb7ee (diff) | |
download | bluez-48d8f08a54003c1526cb614d00a16c08b6471aef.tar.gz |
device: don't wait for timeout if RemoveDevice is called
RemoveDevice on adapter interface used to remove a device, even when
the device is connected. However, since the introduction of the new
30 seconds timeout when setting a device as temporary, RemoveDevice
doesn't immediately remove a connected device, but only disconnects
it and waits for the timer to expire before effectively removes it.
This patch removes the device as soon as it gets disconnected,
provided the disconnection is triggered by a call to RemoveDevice.
The regular timeout still applies for other cases.
Tested manually by calling RemoveDevice on a connected device,
and with ChromeOS autotest setup.
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions