From a4f7a049bab994aa51705a3970a117757cdb64f5 Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Mon, 28 Oct 2024 18:13:27 -0400 Subject: [PATCH] Test Stub --- package.json | 5 +++-- src/index.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 726e398..0111728 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "gen": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/gen-hap-types.ts", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", - "prepublishOnly": "npm run lint && npm run build" + "prepublishOnly": "npm run lint && npm run build", + "test": "echo \"Error: no test specified\" && exit 0" }, "dependencies": { "axios": "1.7.7", @@ -59,4 +60,4 @@ "ts-node": "^10.9.2", "typescript": "^5.5.4" } -} +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 93771e3..976416b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -93,6 +93,7 @@ export class HapClient extends EventEmitter { */ public destroy() { this.browser?.stop(); + this.discoveryInProgress = false; if (this.resetInstancePoolTimeout) { clearTimeout(this.resetInstancePoolTimeout);