summaryrefslogtreecommitdiff
path: root/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc')
-rw-r--r--chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc b/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
index f256f70b43d..bca5dd4efad 100644
--- a/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
+++ b/chromium/device/bluetooth/bluetooth_remote_gatt_characteristic_win.cc
@@ -334,6 +334,7 @@ void BluetoothRemoteGattCharacteristicWin::
std::unique_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE> value,
HRESULT hr) {
DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
+ characteristic_value_read_or_write_in_progress_ = false;
std::pair<ValueCallback, ErrorCallback> callbacks;
callbacks.swap(read_characteristic_value_callbacks_);
@@ -346,12 +347,12 @@ void BluetoothRemoteGattCharacteristicWin::
callbacks.first.Run(characteristic_value_);
}
- characteristic_value_read_or_write_in_progress_ = false;
}
void BluetoothRemoteGattCharacteristicWin::
OnWriteRemoteCharacteristicValueCallback(HRESULT hr) {
DCHECK(ui_task_runner_->RunsTasksInCurrentSequence());
+ characteristic_value_read_or_write_in_progress_ = false;
std::pair<base::Closure, ErrorCallback> callbacks;
callbacks.swap(write_characteristic_value_callbacks_);
@@ -360,7 +361,6 @@ void BluetoothRemoteGattCharacteristicWin::
} else {
callbacks.first.Run();
}
- characteristic_value_read_or_write_in_progress_ = false;
}
BluetoothRemoteGattService::GattErrorCode