Merge #669: gui: ensure we can retry starting in case of error

6d9b754800ed336819e893b8864d75dd936b880b gui: ensure we can retry starting in case of error (jp1ac4)

Pull request description:

  This will ensure we can retry starting internal `bitcoind` in case of transient errors.

ACKs for top commit:
  edouardparis:
    utACK 6d9b754800ed336819e893b8864d75dd936b880b

Tree-SHA512: b7abace801d1690bd084c7aa5b4bf6dcf2fc495c480538f1cae0f348a5179958010413f758fd00930036ee13030d848cf631196225f99d624e61c4b5a922ea92
This commit is contained in:
Antoine Poinsot 2023-08-31 17:12:57 +02:00
commit dbfdd0dca1
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -652,9 +652,9 @@ impl Step for InternalBitcoindStep {
message::InternalBitcoindMsg::Previous => {
if let Some(bitcoind) = &self.internal_bitcoind {
bitcoind.stop();
self.started = None;
}
self.internal_bitcoind = None;
self.started = None; // clear both Ok and Err
return Command::perform(async {}, |_| Message::Previous);
}
message::InternalBitcoindMsg::Reload => {