Skip to content

Commit

Permalink
close socket loop
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoduj committed Feb 16, 2022
1 parent 0d7b499 commit 4c3ed48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions harmonyBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 4c3ed48

Please sign in to comment.