Don't terminate if only one listener fails

This commit is contained in:
Tony Garnock-Jones 2020-06-10 00:23:44 +02:00
parent 889eb524b3
commit bfef938202
1 changed files with 1 additions and 4 deletions

View File

@ -193,10 +193,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
info!(port, "listening");
match run_listener(spaces, port, config).await {
Ok(()) => (),
Err(e) => {
error!("{}", e);
std::process::exit(2)
}
Err(e) => error!("{}", e),
}
}.instrument(tracing::info_span!("listener", port))));
}