summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-05 17:44:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-12-06 16:29:01 +0100
commit080a97a314926ae00a4153aab21a21766c58f521 (patch)
tree4b1093425ee4fce5e8fb6555134fbf46a14536f9 /src
parente3fc119baeaacbadde339e89a9b9d1507f406c15 (diff)
Ensure we exit the ipfs node
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/commands/profile.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/profile.rs b/src/commands/profile.rs
index 98fbc08..951d4b0 100644
--- a/src/commands/profile.rs
+++ b/src/commands/profile.rs
@@ -18,5 +18,8 @@ async fn profile_create(matches: &ArgMatches) -> Result<()> {
let profile = Profile::create(&state_dir, &name, Config::default()).await?;
log::info!("Saving...");
- profile.save().await
+ profile.save().await?;
+
+ log::info!("Shutting down...");
+ profile.exit().await
}