From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 13 Jan 2023 18:03:26 +0000 (+0000) Subject: Don't report an ENODEV condition as an error when getting a delay. X-Git-Tag: 4.2.1d0~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d243492fd5600cb67abcd0a248e97e96f15b353;p=thirdparty%2Fshairport-sync.git Don't report an ENODEV condition as an error when getting a delay. --- diff --git a/player.c b/player.c index e526f66e..15fa80a0 100644 --- a/player.c +++ b/player.c @@ -2645,8 +2645,8 @@ void *player_thread_func(void *arg) { conn->connection_number); } } else { - if (resp != -EBUSY) // delay errors can be reported if the device is (hopefully - // temporarily) busy + if ((resp != -EBUSY) && (resp != -ENODEV)) // delay and not-there errors can be reported if the device is (hopefully + // temporarily) busy or unavailable debug(1, "Delay error %d when checking running latency.", resp); } }