fix #7784 - deinit wallet in wallet dtor

remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
Dusan Klinec 3 years ago
parent 7d2e717ee8
commit 9b840439b9
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103

@ -1215,6 +1215,7 @@ wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended, std
wallet2::~wallet2()
{
deinit();
}
bool wallet2::has_testnet_option(const boost::program_options::variables_map& vm)
@ -3692,9 +3693,11 @@ void wallet2::detach_blockchain(uint64_t height, std::map<std::pair<uint64_t, ui
//----------------------------------------------------------------------------------------------------
bool wallet2::deinit()
{
m_is_initialized=false;
unlock_keys_file();
m_account.deinit();
if(m_is_initialized) {
m_is_initialized = false;
unlock_keys_file();
m_account.deinit();
}
return true;
}
//----------------------------------------------------------------------------------------------------

Loading…
Cancel
Save