Skip to content

Commit

Permalink
fix(cluster): catch mdns discovery issues
Browse files Browse the repository at this point in the history
Closes #107
  • Loading branch information
mKeRix committed Feb 28, 2020
1 parent 9ae5cca commit 31174db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cluster/cluster.service.ts
Expand Up @@ -76,7 +76,14 @@ export class ClusterService extends Democracy
onApplicationBootstrap(): void {
if (this.config.autoDiscovery) {
if (mdns !== undefined) {
this.startBonjourDiscovery();
try {
this.startBonjourDiscovery();
} catch (e) {
this.logger.error(
`Failed to start mdns discovery (${e.message})`,
e.stack
);
}
} else {
this.logger.warn(
'Dependency "mdns" was not found, automatic discovery has been disabled. You will have to provide the addresses of other room-assistant nodes manually in the config.'
Expand Down

0 comments on commit 31174db

Please sign in to comment.