mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
sphinx-key: do a full restart in case of a wifi connection failure
This commit is contained in:
@@ -33,12 +33,7 @@ pub fn start_client(
|
|||||||
}))?;
|
}))?;
|
||||||
info!("Wifi configured");
|
info!("Wifi configured");
|
||||||
|
|
||||||
loop {
|
try_connection(&mut wifi)?;
|
||||||
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