check m_syncing_thread_done instead of m_syncing_enabled before

sync_aux()
This commit is contained in:
woodser
2019-08-22 10:34:35 -04:00
parent 1b5f7eb731
commit 18853fcf06
+1 -1
View File
@@ -3044,7 +3044,7 @@ namespace monero {
if (rescan) m_w2->rescan_blockchain(false);
// sync wallet
if (m_syncing_enabled) result = sync_aux(start_height); // lock is lost on is_daemon_synced() so syncing could be disabled
if (!m_syncing_thread_done) result = sync_aux(start_height); // lock is lost on is_daemon_synced() so syncing could be disabled
}
} while (!rescan && (rescan = m_rescan_on_sync.exchange(false))); // repeat if not rescanned and rescan was requested
return result;