wallet: fix ext conn availability check on create

This commit is contained in:
ardocrat 2024-04-17 02:58:34 +03:00
parent bbd8bbc78b
commit 706619c504
2 changed files with 5 additions and 5 deletions

View file

@ -256,8 +256,6 @@ impl WalletCreation {
}
}
Step::ConfirmMnemonic => {
// Check external connections availability on connection setup.
ExternalConnection::start_ext_conn_availability_check();
Some(Step::SetupConnection)
},
Step::SetupConnection => {
@ -285,6 +283,11 @@ impl WalletCreation {
} else {
Some(Step::EnterMnemonic)
};
// Check external connections availability on connection setup.
if self.step == Some(Step::SetupConnection) {
ExternalConnection::start_ext_conn_availability_check();
}
});
}

View file

@ -90,9 +90,6 @@ impl ExternalConnection {
|| chain_type != AppConfig::chain_type() {
break;
}
// Pause checking for delay value.
std::thread::sleep(Self::AV_CHECK_DELAY);
}
});
}