mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
Do not add service browser to the list if browser creation fails
This commit is contained in:
parent
4544dc152b
commit
4512a7ce9e
@ -800,6 +800,11 @@ mdns_browse(char *type, mdns_browse_cb cb)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_MDNS, "Failed to create service browser: %s\n",
|
DPRINTF(E_LOG, L_MDNS, "Failed to create service browser: %s\n",
|
||||||
avahi_strerror(avahi_client_errno(mdns_client)));
|
avahi_strerror(avahi_client_errno(mdns_client)));
|
||||||
|
|
||||||
|
browser_list = mb->next;
|
||||||
|
free(mb->type);
|
||||||
|
free(mb);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user