From 5a2864c1fb676e5fbd97450622c639015a4e22d7 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 18 Jun 2018 21:03:51 +0100 Subject: simplewallet: fix delay when setting auto-refresh off --- src/simplewallet/simplewallet.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/simplewallet') 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 &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); -- cgit v1.2.3