keep retrying to start veilid-server

This commit is contained in:
John Smith
2024-05-04 16:34:13 -04:00
parent f178ddcb7b
commit a1b6da5ab4

View File

@@ -224,9 +224,8 @@ impl AttachmentManager {
if let Err(err) = netman.startup().await {
error!("network startup failed: {}", err);
netman.shutdown().await;
break;
}
restart = true;
} else {
log_net!(debug "started maintaining peers");
while self.inner.lock().maintain_peers {
// tick network manager
@@ -260,6 +259,7 @@ impl AttachmentManager {
log_net!(debug "stopping network");
netman.shutdown().await;
}
if !restart {
break;