Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes when BLE rendezvous disconnects unexpectedly (#4413)
* Fix crashes when BLE rendezvous disconnects unexpectedly In BLE::OnBleEndPointConnectionClosed, the endpoint is already closed. We try to close it again in the Transport::BLE destructor, causing a crash. Clear the endpoint in OnBleEndPointConnectionClosed to avoid this case. In addition, the OnRendezvousError callback ends up calling RendezvousCleanup, which destroys the transport. We therefore cannot call OnRendezvousConnectionClosed after OnRendezvousError; |this| was already freed in OnRendezvousError and we just need to return. * Restyled by clang-format Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information