Index: device/bluetooth/bluetooth_device.cc |
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc |
index 05532cc2b071b831cbc744c2d107cf6c07da519f..e3dc817f2548eaa6207ed7a9dfed7a54e2ebe8c8 100644 |
--- a/device/bluetooth/bluetooth_device.cc |
+++ b/device/bluetooth/bluetooth_device.cc |
@@ -218,6 +218,8 @@ void BluetoothDevice::CreateGattConnection( |
void BluetoothDevice::SetGattServicesDiscoveryComplete(bool complete) { |
gatt_services_discovery_complete_ = complete; |
+ if (!complete) |
+ gatt_services_.clear(); |
ortuno
2016/01/19 17:55:45
We shouldn't be deleting the services on all platf
tommyt
2016/01/20 07:54:08
Done.
|
} |
bool BluetoothDevice::IsGattServicesDiscoveryComplete() const { |