taud: Cleanly stop p2p network on term signal.

This commit is contained in:
parazyd
2023-07-04 08:22:45 +02:00
parent cebb24549c
commit 232cc174cf
2 changed files with 3 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ CARGO = cargo +nightly
#TARGET_PRFX = --target=
# Binaries to be built
BINS = darkfid faucetd drk darkirc dnetview vanityaddr
BINS = darkfid faucetd drk darkirc dnetview vanityaddr tau taud
# zkas dependencies
ZKASDEPS = \

View File

@@ -399,5 +399,7 @@ async fn realmain(settings: Args, executor: Arc<smol::Executor<'_>>) -> Result<(
print!("\r");
info!("Caught termination signal, cleaning up and exiting...");
p2p.stop().await;
Ok(())
}