mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Remove the call to Toggle from the BluetoothRadio destructor. https://buganizer.corp.google.com/issues/237492358
PiperOrigin-RevId: 465451962
This commit is contained in:
committed by
Copybara-Service
parent
d09223d435
commit
5b3d443815
@@ -37,12 +37,6 @@ BluetoothRadio::~BluetoothRadio() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Toggle Bluetooth regardless of our original state. Some devices/chips can
|
||||
// start to freak out after some time (e.g. b/37775337), and this helps to
|
||||
// ensure BT resets properly.
|
||||
NEARBY_LOG(INFO, "Toggle BT adapter state before releasing adapter.");
|
||||
Toggle();
|
||||
|
||||
NEARBY_LOG(INFO, "Bring BT adapter to original state");
|
||||
if (!SetBluetoothState(originally_enabled_.Get())) {
|
||||
NEARBY_LOG(INFO, "Failed to restore BT adapter original state.");
|
||||
|
||||
Reference in New Issue
Block a user