mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-27 15:47:49 +00:00
wallet2::init() - disconnect before init if connected
Makes it possible for GUI to reinit with new daemon without closing and reopening wallet.
This commit is contained in:
parent
e56bf442c3
commit
031b060af0
1 changed files with 2 additions and 0 deletions
|
@ -487,6 +487,8 @@ std::pair<std::unique_ptr<wallet2>, password_container> wallet2::make_new(const
|
|||
//----------------------------------------------------------------------------------------------------
|
||||
bool wallet2::init(std::string daemon_address, uint64_t upper_transaction_size_limit)
|
||||
{
|
||||
if(m_http_client.is_connected())
|
||||
m_http_client.disconnect();
|
||||
m_upper_transaction_size_limit = upper_transaction_size_limit;
|
||||
m_daemon_address = std::move(daemon_address);
|
||||
return m_http_client.set_server(get_daemon_address());
|
||||
|
|
Loading…
Reference in a new issue