Chromium Code Reviews
Descriptionbluetooth: Save characteristic value when notification arrives
"Once a notification is arrived, work is posted to another thread which
then reads the latest characteristic value. If multiple notifications
arrive fast, this could result in race conditions where all the
onCharacteristicChanged callbacks are first triggered, then the three tasks
posted are executed which all extract the latest notified value instead of
the individual values." -- emil.len...@gmail.com
[1] Post a task when sending GATT events http://crrev.com/2708513002
[2.1] Close and null out BluetoothGatt on the UI Thread http://crrev.com/2702163002
[2.2] Copy characteristic's value before posting task. (This patch).
BUG=647673
Review-Url: https://codereview.chromium.org/2707823002
Cr-Commit-Position: refs/heads/master@{#455037}
Committed: https://chromium.googlesource.com/chromium/src/+/afc9c240ef4f83bf23dfeec704f231f08c5c8121
Patch Set 1 #Patch Set 2 : Merge branch 'bluetooth-notifications-crash' into bluetooth-and-notifications-wrong-value #Patch Set 3 : fix test #
Depends on Patchset: Messages
Total messages: 22 (17 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||