Skip to content

Commit

Permalink
wip(loader): stop internal bitcoind
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Aug 21, 2023
1 parent 7763d46 commit dd0fdb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use crate::{
app::{
cache::Cache,
config::Config as GUIConfig,
stop_internal_bitcoind,
wallet::{Wallet, WalletError},
},
daemon::{client, embedded::EmbeddedDaemon, model::*, Daemon, DaemonError},
Expand Down Expand Up @@ -177,6 +178,13 @@ impl Loader {
} else {
}
}
if self.gui_config.internal_bitcoind_exe_config.is_some() {
if let Some(daemon_config) = daemon.config() {
if let Some(bitcoind_config) = &daemon_config.bitcoind_config {
stop_internal_bitcoind(bitcoind_config);
}
}
}
}
}

Expand Down

0 comments on commit dd0fdb5

Please sign in to comment.