zeroconf/Avahi: throw exception instead of raising fatal error

This commit is contained in:
Max Kellermann 2017-08-11 09:38:08 +02:00
parent d3fd89552f
commit ef79647e85
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@
#include "AvahiPoll.hxx"
#include "ZeroconfInternal.hxx"
#include "Listen.hxx"
#include "system/FatalError.hxx"
#include "util/Domain.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <avahi-client/client.h>
@ -240,7 +240,7 @@ AvahiInit(EventLoop &loop, const char *serviceName)
LogDebug(avahi_domain, "Initializing interface");
if (!avahi_is_valid_service_name(serviceName))
FormatFatalError("Invalid zeroconf_name \"%s\"", serviceName);
throw FormatRuntimeError("Invalid zeroconf_name \"%s\"", serviceName);
avahi_name = avahi_strdup(serviceName);