This commit is contained in:
QuantumEntangledAndy committed 2023-08-03 18:59:59 +07:00
1 parent b2e43c605e
commit c45a5033b9
1 file changed
+7
+7
View File
@@ -205,6 +205,13 @@ impl BcCamera {
}, if allow_local => v,
v = async {
let reg_result;
// Registration is looped as it seems that reolink
// only updates the registration lazily when someone attempts
// to connect. The first few connects fails until the server data
// is updated
//
// We loop infinitly and allow the caller to timeout at the
// interval they desire
loop {
tokio::task::yield_now().await;
if let Ok(result) = discovery.get_registration(uid).await {