wallet: fix ext conn availability check on create
This commit is contained in:
parent
bbd8bbc78b
commit
706619c504
2 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -90,9 +90,6 @@ impl ExternalConnection {
|
|||
|| chain_type != AppConfig::chain_type() {
|
||||
break;
|
||||
}
|
||||
|
||||
// Pause checking for delay value.
|
||||
std::thread::sleep(Self::AV_CHECK_DELAY);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue