[Chromecast][BLE] Fix crash caused by command complete callback after disconnect
We might receive command complete callbacks after device is disconnected. Because we have already cleared the command queue, this will result in DCHECK fail in eng builds or segmentation fault in user builds. We fix this issue and avoid device crash in this case. Bug: internal b/135691184 Test: cast_bluetooth_unittests, manual Change-Id: Ic086f56734fa20e836341768bfe7c3187de92fe0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1673084 Auto-Submit: Tiansong Cui <tiansong@google.com> Commit-Queue: Yuchen Liu <yucliu@chromium.org> Reviewed-by:Yuchen Liu <yucliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#671547}
Showing
Please register or sign in to comment