uvc: treat ENOENT as idle
This commit is contained in:
parent
bc14f42b8d
commit
a9f3195952
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user