• Reilly Grant's avatar
    [fido] Avoid re-entrancy when handling BLE connection changes · a09940f9
    Reilly Grant authored
    This patch implements a quick fix for issue 950204 by introducing a
    PostTask() when destroying a BluetoothGattConnection object. Since this
    can happen while handling the response to GATT requests or when the GATT
    connection status changes this introduces re-entrancy which is not
    safely handled by the BluetoothDevice object. This change provides a
    workaround until that safety can be guaranteed.
    
    Bug: 950204
    Change-Id: I6dcce598113ede6e0ae1ed36cebf85937d72c392
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1584174Reviewed-by: default avatarAdam Langley <agl@chromium.org>
    Commit-Queue: Reilly Grant <reillyg@chromium.org>
    Auto-Submit: Reilly Grant <reillyg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#654627}
    a09940f9
fido_ble_connection.cc 18.9 KB