diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-11-30 07:31:11 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-11-30 07:31:16 +0200 |
commit | e80b64c5f2861b7d1f0cd62604c7f922a1e3a20d (patch) | |
tree | 200f691c7fcadfa81169b92ec500a72d3100e219 /src/wallet/wallet2.cpp | |
parent | Merge pull request #511 (diff) | |
parent | wallet: cancellable refresh (diff) | |
download | monero-e80b64c5f2861b7d1f0cd62604c7f922a1e3a20d.tar.xz |
Merge pull request #510
d68a63e wallet: cancellable refresh (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index c4df78ba9..ba7fe93b3 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -680,6 +680,7 @@ void wallet2::refresh(uint64_t start_height, uint64_t & blocks_fetched, bool& re get_short_chain_history(short_chain_history); pull_blocks(start_height, blocks_start_height, short_chain_history, blocks); + m_run.store(true, std::memory_order_relaxed); while(m_run.load(std::memory_order_relaxed)) { try |