mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
wallet_rpc_server: don't abort on initial refresh failure
This commit is contained in:
parent
a1eca8ca7e
commit
015da03a6f
1 changed files with 8 additions and 1 deletions
|
@ -4438,7 +4438,14 @@ public:
|
||||||
wal->stop();
|
wal->stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
wal->refresh(wal->is_trusted_daemon());
|
wal->refresh(wal->is_trusted_daemon());
|
||||||
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
LOG_ERROR(tools::wallet_rpc_server::tr("Initial refresh failed: ") << e.what());
|
||||||
|
}
|
||||||
// if we ^C during potentially length load/refresh, there's no server loop yet
|
// if we ^C during potentially length load/refresh, there's no server loop yet
|
||||||
if (quit)
|
if (quit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue