From 706619c50491193c90c10f9edfc68d05b5b4d154 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Wed, 17 Apr 2024 02:58:34 +0300 Subject: [PATCH] wallet: fix ext conn availability check on create --- src/gui/views/wallets/creation/creation.rs | 7 +++++-- src/wallet/connections/external.rs | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/views/wallets/creation/creation.rs b/src/gui/views/wallets/creation/creation.rs index 793ec22..7e2f6de 100644 --- a/src/gui/views/wallets/creation/creation.rs +++ b/src/gui/views/wallets/creation/creation.rs @@ -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(); + } }); } diff --git a/src/wallet/connections/external.rs b/src/wallet/connections/external.rs index 7e002a8..3c6a4cb 100644 --- a/src/wallet/connections/external.rs +++ b/src/wallet/connections/external.rs @@ -90,9 +90,6 @@ impl ExternalConnection { || chain_type != AppConfig::chain_type() { break; } - - // Pause checking for delay value. - std::thread::sleep(Self::AV_CHECK_DELAY); } }); }