diff --git a/src/common/camthread.rs b/src/common/camthread.rs index 0b74898..18646e9 100644 --- a/src/common/camthread.rs +++ b/src/common/camthread.rs @@ -71,7 +71,9 @@ impl NeoCamThread { // Camera does not support pings just wait forever futures::future::pending().await }, - Ok(Err(e)) => return Err(e.into()), + Ok(Err(e)) => { + break Err(e.into()); + }, Err(_) => { // Timeout if missed_pings > 5 {