mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-17 14:21:24 +02:00
wallet: fix ext conn availability check on create
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user