aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf-avahi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zeroconf-avahi.c')
-rw-r--r--src/zeroconf-avahi.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/zeroconf-avahi.c b/src/zeroconf-avahi.c
index f2cc5359b..d2c6c084c 100644
--- a/src/zeroconf-avahi.c
+++ b/src/zeroconf-avahi.c
@@ -19,7 +19,7 @@
#include "config.h"
#include "zeroconf-internal.h"
-#include "listen.h"
+#include "Listen.hxx"
#include "mpd_error.h"
#include <glib.h>
@@ -234,13 +234,8 @@ void init_avahi(const char *serviceName)
if (!avahiClient) {
g_warning("Failed to create client: %s",
avahi_strerror(error));
- goto fail;
+ avahi_finish();
}
-
- return;
-
-fail:
- avahi_finish();
}
void avahi_finish(void)