Another discovery fix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Nathan Kellenicki 2022-01-20 22:17:46 -08:00
parent 72ef125d4f
commit e4c68e5749
3 changed files with 3 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "node-poweredup",
"version": "8.0.4",
"version": "8.0.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "node-poweredup",
"version": "8.0.4",
"version": "8.0.5",
"license": "MIT",
"dependencies": {
"@abandonware/noble": "1.9.2-15",

View File

@ -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",

View File

@ -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) {
@ -91,7 +90,6 @@ export class PoweredUP extends EventEmitter {
public stop () {
wantScan = false;
// @ts-ignore
noble.removeAllListeners();
noble.removeListener("discover", this._discoveryEventHandler);
noble.stopScanning();
}