zeroconf/Glue: allow ZeroconfInit() to throw
This commit is contained in:
parent
06b9bdba2c
commit
fe741bd767
@ -476,7 +476,12 @@ MainConfigured(const struct options &options, const ConfigData &raw_config)
|
||||
};
|
||||
#endif
|
||||
|
||||
ZeroconfInit(raw_config, instance.event_loop);
|
||||
try {
|
||||
ZeroconfInit(raw_config, instance.event_loop);
|
||||
} catch (...) {
|
||||
LogError(std::current_exception(),
|
||||
"Zeroconf initialization failed");
|
||||
}
|
||||
|
||||
#ifdef ENABLE_DATABASE
|
||||
if (create_db) {
|
||||
|
@ -27,6 +27,9 @@ class EventLoop;
|
||||
|
||||
#ifdef HAVE_ZEROCONF
|
||||
|
||||
/**
|
||||
* Throws on error.
|
||||
*/
|
||||
void
|
||||
ZeroconfInit(const ConfigData &config, EventLoop &loop);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user