mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
simplewallet: fix hang when setting auto-refresh to 0
It would try to join the auto refresh thread, which would only happen after it was done, which would take a long time when doing so on a newly created wallet.
This commit is contained in:
parent
dfd0e9c97d
commit
41ea91a97a
@ -450,6 +450,7 @@ bool simple_wallet::set_auto_refresh(const std::vector<std::string> &args/* = st
|
||||
else if (!auto_refresh && m_auto_refresh_run.load(std::memory_order_relaxed))
|
||||
{
|
||||
m_auto_refresh_run.store(false, std::memory_order_relaxed);
|
||||
m_wallet->stop();
|
||||
m_auto_refresh_thread.join();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user