From 18853fcf06dd9ee9fa3ebf2368c8a33ca37c137c Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 22 Aug 2019 10:34:35 -0400 Subject: [PATCH] check m_syncing_thread_done instead of m_syncing_enabled before sync_aux() --- src/wallet/monero_wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/monero_wallet.cpp b/src/wallet/monero_wallet.cpp index 22f0f13..d6da71f 100644 --- a/src/wallet/monero_wallet.cpp +++ b/src/wallet/monero_wallet.cpp @@ -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;