Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Dec 3, 2024
1 parent 8f6b9d9 commit 0d08e1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export class HapClient extends EventEmitter {
this.browser.start();
this.debug(`[HapClient] Discovery :: Started`);

// stop discovery after 20 seconds
// this.startDiscoveryTimeout = setTimeout(() => {
// this.browser.stop();
// this.debug(`[HapClient] Discovery :: Ended`);
// this.discoveryInProgress = false;
// this.emit('discovery-ended');
// }, 60000);
// stop discovery after 60 seconds
this.startDiscoveryTimeout = setTimeout(() => {
this.browser.stop();
this.debug(`[HapClient] Discovery :: Ended`);
this.discoveryInProgress = false;
this.emit('discovery-ended');
}, 60000);

// service found
this.browser.on('up', async (device: Service) => {
Expand Down

0 comments on commit 0d08e1d

Please sign in to comment.