Skip to content

Commit

Permalink
Another discovery fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Kellenicki authored and Nathan Kellenicki committed Jan 21, 2022
1 parent 72ef125 commit e4c68e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-poweredup",
"version": "8.0.4",
"version": "8.0.5",
"description": "A Javascript module to interface with LEGO Powered Up components.",
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
"main": "dist/node/index-node.js",
Expand Down
2 changes: 0 additions & 2 deletions src/poweredup-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export class PoweredUP extends EventEmitter {
public async scan () {
wantScan = true;
// @ts-ignore
noble.removeAllListeners();
noble.on("discover", this._discoveryEventHandler);

if (ready) {
Expand All @@ -91,7 +90,6 @@ export class PoweredUP extends EventEmitter {
public stop () {
wantScan = false;
// @ts-ignore
noble.removeAllListeners();
noble.removeListener("discover", this._discoveryEventHandler);
noble.stopScanning();
}
Expand Down

0 comments on commit e4c68e5

Please sign in to comment.