Commit fe741bd7 authored by Max Kellermann's avatar Max Kellermann

zeroconf/Glue: allow ZeroconfInit() to throw

parent 06b9bdba
...@@ -476,7 +476,12 @@ MainConfigured(const struct options &options, const ConfigData &raw_config) ...@@ -476,7 +476,12 @@ MainConfigured(const struct options &options, const ConfigData &raw_config)
}; };
#endif #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 #ifdef ENABLE_DATABASE
if (create_db) { if (create_db) {
......
...@@ -27,6 +27,9 @@ class EventLoop; ...@@ -27,6 +27,9 @@ class EventLoop;
#ifdef HAVE_ZEROCONF #ifdef HAVE_ZEROCONF
/**
* Throws on error.
*/
void void
ZeroconfInit(const ConfigData &config, EventLoop &loop); ZeroconfInit(const ConfigData &config, EventLoop &loop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment