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

App crash when force quit app on macOS for subscribing on 'stateChange' event #31

Open
shahidul-brur opened this issue Nov 29, 2021 · 0 comments

Comments

@shahidul-brur
Copy link

I have used abandonware/bleno in my electron app. Every time I right click on the app and click quit option, app is crashing.
ble-crash.txt

To investigate this, I have removed stateChange event subscription and app is no more crashing.

My code to subscribe on stateChange event is bleno.on('stateChange', (state) => { console.log('ble state changed to:', state); });

When I removed this portion, the app is no more crashing. But then another issue occurs: ble state never changes from unknown, the state remains unknown always. That's why I can't do anything with ble.

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