aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSammy Libre <sammy007@users.noreply.github.com>2014-11-01 11:30:53 +0500
committerSammy Libre <sammy007@users.noreply.github.com>2014-11-01 11:30:53 +0500
commit250254c338e3db88f8c6895f37e253d0384c6408 (patch)
tree026e13c59112941dba41576169a393c48ea3a0e0
parentMerge pull request #182 (diff)
downloadmonero-250254c338e3db88f8c6895f37e253d0384c6408.tar.xz
Exception handling while refreshing in rpc wallet (credits to QCN)
-rw-r--r--src/wallet/wallet_rpc_server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 995e97ede..66cf64166 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -58,7 +58,11 @@ namespace tools
bool wallet_rpc_server::run()
{
m_net_server.add_idle_handler([this](){
- m_wallet.refresh();
+ try {
+ m_wallet.refresh();
+ } catch (const std::exception& ex) {
+ LOG_ERROR("Exception at while refreshing, what=" << ex.what());
+ }
return true;
}, 20000);