mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 01:08:52 +00:00
Exception handling while refreshing in rpc wallet (credits to QCN)
This commit is contained in:
parent
699d932461
commit
250254c338
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user