]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
quieten message when dacp scanner does down
authorMike Brady <mikebrady@eircom.net>
Mon, 16 Apr 2018 18:19:32 +0000 (19:19 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 16 Apr 2018 18:19:32 +0000 (19:19 +0100)
mdns.c

diff --git a/mdns.c b/mdns.c
index 855f3c3e715cb9d8396526d678397109ea770044..e45dacc511cae4537184a99c6d0afc17ecd4c6ea 100644 (file)
--- 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) {