Merge pull request #183

250254c Exception handling while refreshing in rpc wallet (credits to QCN) (Sammy Libre)
This commit is contained in:
Riccardo Spagni 2014-12-08 20:01:19 +02:00
commit 1925eeffa8
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -58,7 +58,11 @@ namespace tools
bool wallet_rpc_server::run() bool wallet_rpc_server::run()
{ {
m_net_server.add_idle_handler([this](){ m_net_server.add_idle_handler([this](){
try {
m_wallet.refresh(); m_wallet.refresh();
} catch (const std::exception& ex) {
LOG_ERROR("Exception at while refreshing, what=" << ex.what());
}
return true; return true;
}, 20000); }, 20000);