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

more work for lazy bindings #309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jacobrosenthal
Copy link
Member

Mirrors work we did in noble
noble/noble#606

this._bindings.stopAdvertising();
if(this._bindings && this.initialized){
this._bindings.stopAdvertising();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few spots like this below, where an edge case exists. If the bindings are not initialized for whatever reason. The passed in callback would never be called.

Do we want to cover this case? I'm guessing something similar would happen before though ...

@rzr
Copy link

rzr commented Mar 5, 2020

May I suggest to forward your changes to:

https://github.com/abandonware/bleno/

Meanwhile, feedback welcome on latest release:

https://www.npmjs.com/package/@abandonware/bleno/v/0.5.1-2

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

Successfully merging this pull request may close these issues.

3 participants