From: Mike Brady Date: Mon, 16 Apr 2018 18:19:32 +0000 (+0100) Subject: quieten message when dacp scanner does down X-Git-Tag: 3.2RC4~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75041c52cdbbbbf6398de09317e5c7a2f933323a;p=thirdparty%2Fshairport-sync.git quieten message when dacp scanner does down --- diff --git a/mdns.c b/mdns.c index 855f3c3e..e45dacc5 100644 --- a/mdns.c +++ b/mdns.c @@ -106,9 +106,7 @@ void mdns_unregister(void) { void *mdns_dacp_monitor(char *dacp_id) { void *reply = NULL; - if ((dacp_id==NULL) || (*dacp_id=='\0')) - debug(1, "A null or zero-length DACP-ID string was provided for monitoring -- nothing done."); - else { + if ((dacp_id!=NULL) && (*dacp_id!='\0')) { if ((config.mdns) && (config.mdns->mdns_dacp_monitor)) { reply = config.mdns->mdns_dacp_monitor(dacp_id); if (reply == NULL) {