]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Don't report an ENODEV condition as an error when getting a delay.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 13 Jan 2023 18:03:26 +0000 (18:03 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 13 Jan 2023 18:03:26 +0000 (18:03 +0000)
player.c

index e526f66e470487d108ee0068701dfe921f235b74..15fa80a049b8fe8a67e00f36dc4887ccca742307 100644 (file)
--- 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);
               }
             }