Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

more work for lazy bindings#309

Open
jacobrosenthal wants to merge 1 commit intonoble:masterfrom
jacobrosenthal:lazy
Open

more work for lazy bindings#309
jacobrosenthal wants to merge 1 commit intonoble:masterfrom
jacobrosenthal:lazy

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants