Skip to content

Commit

Permalink
GSH Crashes when another HB restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 18, 2024
1 parent 8da119f commit 257bebc
Showing 1 changed file with 1 addition and 1 deletion.
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 257bebc

Please sign in to comment.