diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-18 21:03:51 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-06-18 21:05:42 +0100 |
commit | 5a2864c1fb676e5fbd97450622c639015a4e22d7 (patch) | |
tree | 2cd17e75c32a868787cac78f3ba63f7e9cf0b7ac /src/simplewallet | |
parent | Merge pull request #3804 (diff) | |
download | monero-5a2864c1fb676e5fbd97450622c639015a4e22d7.tar.xz |
simplewallet: fix delay when setting auto-refresh off
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 196a2eb74..8dc6724da 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1837,6 +1837,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); |