diff options
author | Sammy Libre <sammy007@users.noreply.github.com> | 2014-11-01 11:30:53 +0500 |
---|---|---|
committer | Sammy Libre <sammy007@users.noreply.github.com> | 2014-11-01 11:30:53 +0500 |
commit | 250254c338e3db88f8c6895f37e253d0384c6408 (patch) | |
tree | 026e13c59112941dba41576169a393c48ea3a0e0 | |
parent | Merge pull request #182 (diff) | |
download | monero-250254c338e3db88f8c6895f37e253d0384c6408.tar.xz |
Exception handling while refreshing in rpc wallet (credits to QCN)
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 6 |
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); |