diff options
| author | Riccardo Spagni <ric@spagni.net> | 2014-12-08 20:01:19 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2014-12-08 20:03:39 +0200 |
| commit | 1925eeffa8e51548b1e4f2b9a8ef05883254cbd5 (patch) | |
| tree | 6aca5c2d357f94a867014d9fcf405e6724767d08 /src/wallet/wallet_rpc_server.cpp | |
| parent | 831933425b3406310e70476dc56e822f7ae3c549 (diff) | |
| parent | 250254c338e3db88f8c6895f37e253d0384c6408 (diff) | |
| download | monzero-core-1925eeffa8e51548b1e4f2b9a8ef05883254cbd5.tar.gz monzero-core-1925eeffa8e51548b1e4f2b9a8ef05883254cbd5.tar.xz monzero-core-1925eeffa8e51548b1e4f2b9a8ef05883254cbd5.zip | |
Merge pull request #183
250254c Exception handling while refreshing in rpc wallet (credits to QCN) (Sammy Libre)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
| -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); |
