Add break to loop

This commit is contained in:
Jett Chen 2023-12-18 11:27:59 +08:00
parent 889ed37f80
commit 76278809ea

View file

@ -20,7 +20,10 @@ pub extern "C" fn start_srv() {
rt.block_on(async {
loop {
match DaemonClient::new().await {
Ok(..) => info!("Server successfully started"),
Ok(..) => {
info!("Server successfully started");
break
},
Err(e) => error!("Could not connect to server: {}", e)
}
}