mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 23:31:32 +02:00
invoke on_sync_end() on refresh exception
This commit is contained in:
@@ -3348,9 +3348,9 @@ namespace monero {
|
||||
try {
|
||||
m_w2->refresh(m_w2->is_trusted_daemon(), sync_start_height, result.m_num_blocks_fetched, result.m_received_money, true);
|
||||
if (!m_is_synced) m_is_synced = true;
|
||||
} catch (const exception& e) {
|
||||
MERROR("Caught error refreshing m_w2: " << e.what());
|
||||
cout << "ERROR: caught error refreshing m_w2: " << e.what() << endl;
|
||||
} catch (exception& e) {
|
||||
m_w2_listener->on_sync_end(); // signal end of sync to reset listener's start and end heights
|
||||
throw;
|
||||
}
|
||||
|
||||
// find and save rings
|
||||
|
||||
Reference in New Issue
Block a user