Add break to loop
This commit is contained in:
parent
889ed37f80
commit
76278809ea
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue