From 4c3ed4830e48483c07b0cf96e347815ced3827f5 Mon Sep 17 00:00:00 2001 From: Nicolas Dujardin Date: Wed, 16 Feb 2022 10:29:00 +0100 Subject: [PATCH] close socket loop --- CHANGELOG.md | 4 ++++ harmonyBase.js | 6 ------ package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62f0e52..2fc1373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 1.6.0(beta3) + +- [WorkInProgress] This plugin slows down Homebridge / socket closed messages #387 + ## 1.6.0(beta2) - [WorkInProgress] Switching activities powers off activity #395 diff --git a/harmonyBase.js b/harmonyBase.js index a1f32e4..f13a69c 100644 --- a/harmonyBase.js +++ b/harmonyBase.js @@ -282,12 +282,6 @@ HarmonyBase.prototype = { this.harmony.on('close', () => { harmonyPlatform.log('(' + harmonyPlatform.name + ')' + 'WARNING - socket closed'); - this.harmony.close().catch((e2) => { - harmonyPlatform.log( - '(' + harmonyPlatform.name + ')' + 'Error - Error closing ' + e2.message - ); - }); - setTimeout(() => { if (harmonyPlatform.hubRemoteId == undefined) { this.harmony diff --git a/package.json b/package.json index 5babb4a..53cb766 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-harmony", - "version": "1.6.0-beta2", + "version": "1.6.0-beta3", "author": "Nicolas Dujardin", "description": "Publish your harmony activities as homekit accessories", "main": "index.js",