Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when unplug bluetooth adapter after it's connected to a device #272

Open
squarepantsspongebob opened this issue Nov 3, 2023 · 0 comments

Comments

@squarepantsspongebob
Copy link

After unplug bluetooth adapter, the code will run into the bool PeripheralBase::_attemp_connect() function. However, the pointer device_ could be an empty pointer which leads to crash.

I've tryed to add logic below and can fix the bug.
if ( nullptr == device_ ) { return false; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant