aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-08-15 17:05:14 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-08-15 17:05:14 -0500
commitdd8354aa08dacbdf761520a1d99d5a131307e4a6 (patch)
treeaa865944b75a0018210e1308de1fc8125ac6ea40 /src/simplewallet/simplewallet.cpp
parentMerge pull request #4020 (diff)
parentsimplewallet: fix delay when setting auto-refresh off (diff)
downloadmonero-dd8354aa08dacbdf761520a1d99d5a131307e4a6.tar.xz
Merge pull request #4024
5a2864c simplewallet: fix delay when setting auto-refresh off (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 775b7c359..9b301447e 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1825,6 +1825,7 @@ bool simple_wallet::set_auto_refresh(const std::vector<std::string> &args/* = st
if (pwd_container)
{
parse_bool_and_use(args[1], [&](bool auto_refresh) {
+ m_auto_refresh_enabled.store(false, std::memory_order_relaxed);
m_wallet->auto_refresh(auto_refresh);
m_idle_mutex.lock();
m_auto_refresh_enabled.store(auto_refresh, std::memory_order_relaxed);