Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Always correctly activate component, even if no networks are available (
Browse files Browse the repository at this point in the history
#3841)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
  • Loading branch information
kaikreuzer authored and sjsf committed Jul 17, 2017
1 parent e402ff5 commit 8776d5e
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -77,13 +77,9 @@ public void activate() {
jmdnsInstances.add(jmdns);
logger.debug("mDNS service has been started ({} for IP {})", jmdns.getName(), address.getHostAddress());
} catch (IOException e) {
logger.debug("JmDNS instanciation failed ({})!", address.getHostAddress());
logger.debug("JmDNS instantiation failed ({})!", address.getHostAddress());
}
}
if (jmdnsInstances.isEmpty()) {
// we must cancel the activation of this component here
throw new IllegalStateException("No mDNS service has been started");
}
}

public void deactivate() {
Expand Down

0 comments on commit 8776d5e

Please sign in to comment.