[mdns] Add log hint about Avahi not running if adding browser fails

Ref issue #1529
This commit is contained in:
ejurgensen 2022-08-21 10:21:22 +02:00
parent 3cbb95976a
commit c1373394a8

View File

@ -1239,7 +1239,7 @@ mdns_browse(char *type, mdns_browse_cb cb, enum mdns_options flags)
b = avahi_service_browser_new(mdns_client, mdns_interface, mb->protocol, mb->type, NULL, 0, browse_callback, mb);
if (!b)
{
DPRINTF(E_LOG, L_MDNS, "Failed to create service browser: %s\n", MDNSERR);
DPRINTF(E_LOG, L_MDNS, "Error '%s' when creating service browser for %s, check that Avahi is running\n", MDNSERR, type);
browser_list = mb->next;
free(mb->type);