mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-07 22:04:03 -05:00
taud: Cleanly stop p2p network on term signal.
This commit is contained in:
2
Makefile
2
Makefile
@@ -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 = \
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user