Merge pull request #5576

577324a wallet_manager: omit redundant disconnect, drop unused variable (xiphon)
This commit is contained in:
luigi1111 2019-07-24 14:16:00 -05:00
commit 8600b3c69d
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
2 changed files with 0 additions and 4 deletions

View File

@ -227,9 +227,6 @@ std::string WalletManagerImpl::errorString() const
void WalletManagerImpl::setDaemonAddress(const std::string &address) void WalletManagerImpl::setDaemonAddress(const std::string &address)
{ {
m_daemonAddress = address;
if(m_http_client.is_connected())
m_http_client.disconnect();
m_http_client.set_server(address, boost::none); m_http_client.set_server(address, boost::none);
} }

View File

@ -95,7 +95,6 @@ public:
private: private:
WalletManagerImpl() {} WalletManagerImpl() {}
friend struct WalletManagerFactory; friend struct WalletManagerFactory;
std::string m_daemonAddress;
epee::net_utils::http::http_simple_client m_http_client; epee::net_utils::http::http_simple_client m_http_client;
std::string m_errorString; std::string m_errorString;
}; };