Skip to content

Commit

Permalink
GSH crashes when HB restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 18, 2024
1 parent 5023f0f commit ec1c9e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 91 deletions.
90 changes: 0 additions & 90 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion src/hap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Hap {
this.hapClient.removeListener('instance-discovered', this.waitForNoMoreDiscoveries);
this.start();
this.requestSync();
this.hapClient.on('instance-discovered', this.requestSync); // Request sync on new instance discovery
this.hapClient.on('instance-discovered', this.requestSync.bind(this)); // Request sync on new instance discovery
}, 5000);
};

Expand Down

0 comments on commit ec1c9e8

Please sign in to comment.