1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Forcefully terminate the server on fatal error.

This commit is contained in:
Martin Hoffmann
2019-11-27 16:12:00 +01:00
parent 42587ba2a2
commit 4041c23b02

View File

@ -15,7 +15,6 @@ use std::str::FromStr;
use std::time::Duration;
use clap::{App, Arg, ArgMatches, SubCommand};
use derive_more::From;
use futures::future::Future;
use log::{error, info, warn};
use rpki::resources::AsId;
use tempfile::NamedTempFile;
@ -419,7 +418,11 @@ impl Server {
}
}
unwrap!(runtime.shutdown_now().wait());
// XXX This seems to hang indefinitely, with or without the shutdown.
// Since we are terminating the process thereafter, anyway, this
// may be fine for now.
// unwrap!(runtime.shutdown_now().wait());
std::process::exit(0);
Ok(())
}