uvc: treat ENOENT as idle

This commit is contained in:
Brad Stein 2026-01-06 04:52:07 -03:00
parent bc14f42b8d
commit a9f3195952

View File

@ -128,7 +128,7 @@ fn main() -> Result<()> {
if rc < 0 {
let err = std::io::Error::last_os_error();
match err.raw_os_error() {
Some(libc::EAGAIN) | Some(libc::EINTR) => {
Some(libc::EAGAIN) | Some(libc::EINTR) | Some(libc::ENOENT) => {
thread::sleep(Duration::from_millis(10));
continue;
}