mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
sphinx-key: add the loop back in
This commit is contained in:
@@ -34,7 +34,12 @@ pub fn start_client(
|
|||||||
}))?;
|
}))?;
|
||||||
info!("Wifi configured");
|
info!("Wifi configured");
|
||||||
|
|
||||||
try_connection(&mut wifi)?;
|
loop {
|
||||||
|
match try_connection(&mut wifi) {
|
||||||
|
Ok(_) => break,
|
||||||
|
Err(e) => info!("error: {}, trying wifi connection again!", e),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// let status = wifi.get_status();
|
// let status = wifi.get_status();
|
||||||
// println!("=> wifi STATUS {:?}", status);
|
// println!("=> wifi STATUS {:?}", status);
|
||||||
|
|||||||
Reference in New Issue
Block a user