mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #183
250254c
Exception handling while refreshing in rpc wallet (credits to QCN) (Sammy Libre)
This commit is contained in:
commit
1925eeffa8
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue