Small rework to ping error handle

This commit is contained in:
QuantumEntangledAndy committed 2023-10-19 11:50:48 +07:00
1 parent 3cdd75b244
commit 362c764d08
1 file changed
+3 -1
+3 -1
View File
@@ -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 {