Chromium Code Reviews

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2625013003: bluetooth: bluez: Fixed issue with missing notifications after reconnect. (Closed)
Patch Set: Added comment about the notification. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: device/bluetooth/bluetooth_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index 00da119194d0554126386e33db737b400f0d4f04..9aab87e961029c70a1614450177f9b19cc13db2d 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -364,7 +364,7 @@ void BluetoothLowEnergyDeviceMac::DidDisconnectPeripheral(NSError* error) {
// 2. When we cancel a pending connection request.
if (create_gatt_connection_error_callbacks_.empty()) {
// If there are no pending callbacks then the connection broke (#1).
- DidDisconnectGatt();
+ DidDisconnectGatt(true /* notifyDeviceChanged */);
return;
}
// Else we canceled the connection request (#2).

Powered by Google App Engine