mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 05:37:46 +00:00
simplewallet: fix delay when setting auto-refresh off
This commit is contained in:
parent
9226acca4b
commit
5a2864c1fb
1 changed files with 1 additions and 0 deletions
|
@ -1837,6 +1837,7 @@ bool simple_wallet::set_auto_refresh(const std::vector<std::string> &args/* = st
|
||||||
if (pwd_container)
|
if (pwd_container)
|
||||||
{
|
{
|
||||||
parse_bool_and_use(args[1], [&](bool auto_refresh) {
|
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_wallet->auto_refresh(auto_refresh);
|
||||||
m_idle_mutex.lock();
|
m_idle_mutex.lock();
|
||||||
m_auto_refresh_enabled.store(auto_refresh, std::memory_order_relaxed);
|
m_auto_refresh_enabled.store(auto_refresh, std::memory_order_relaxed);
|
||||||
|
|
Loading…
Reference in a new issue