Suppress UDP packet error when errno==0

https://github.com/Hamlib/Hamlib/issues/1461
pull/1476/head
Mike Black W9MDB 2024-01-06 16:12:48 -06:00
rodzic 2eefb14137
commit eab660500e
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -999,8 +999,15 @@ void *multicast_publisher(void *arg)
if (send_result < 0)
{
rig_debug(RIG_DEBUG_ERR, "%s: error sending UDP packet: %s\n", __func__,
strerror(errno));
static int flag = 0;
if (errno != 0 || flag == 0)
{
rig_debug(RIG_DEBUG_ERR,
"%s: error sending UDP packet: %s\n", __func__,
strerror(errno));
flag = 1;
}
}
}