Chromium Code Reviews
Description[CrOS Tether] Do not register a new Bluetooth advertisement until any previous identical advertisement has been unregistered.
This fixes the following issue:
(1) BleAdvertiser starts advertising to device A.
(2) BleAdvertiser stops advertising to device A. The advertisement starts its asynchyronous unregistration flow.
(3) BleAdvertiser starts advertising to device A again, but the previous advertisement has not yet been fully unregistered.
After this fix, BleAdvertiser will wait for the previous advertisement to be unregistered in step (3), ensuring that we do not run into the ERROR_ADVERTISEMENT_ALREADY_EXISTS error.
BUG=672263, 739883
Review-Url: https://codereview.chromium.org/2972263002
Cr-Commit-Position: refs/heads/master@{#486047}
Committed: https://chromium.googlesource.com/chromium/src/+/3b45b11eb7575d7e35ff53431dd675e83f428772
Patch Set 1 #
Total comments: 6
Patch Set 2 : hansberry@ comments. #
Total comments: 2
Patch Set 3 : hansberry@ comment. #
Messages
Total messages: 16 (6 generated)
|
|||||||||||||||||||||||||||||||||||||