From: Peter Meerwald <p.meerwald@xxxxxxxxxxxxxxxxxx> CID 1138500 --- src/modules/module-zeroconf-publish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c index ac139e9..9707a40 100644 --- a/src/modules/module-zeroconf-publish.c +++ b/src/modules/module-zeroconf-publish.c @@ -766,7 +766,8 @@ int pa__init(pa_module*m) { pa_xfree(hn); pa_threaded_mainloop_set_name(u->mainloop, "avahi-ml"); - pa_threaded_mainloop_start(u->mainloop); + if (pa_threaded_mainloop_start(u->mainloop) < 0) + goto fail; pa_threaded_mainloop_lock(u->mainloop); pa_mainloop_api_once(u->api, create_client, u); -- 1.9.1