mirror of
https://github.com/monero-project/monero.git
synced 2025-06-29 10:37:08 -04:00
Merge pull request #718
41ea91a
simplewallet: fix hang when setting auto-refresh to 0 (moneromooo-monero)
This commit is contained in:
commit
dd3cd9e7b8
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
else if (!auto_refresh && m_auto_refresh_run.load(std::memory_order_relaxed))
|
||||||
{
|
{
|
||||||
m_auto_refresh_run.store(false, std::memory_order_relaxed);
|
m_auto_refresh_run.store(false, std::memory_order_relaxed);
|
||||||
|
m_wallet->stop();
|
||||||
m_auto_refresh_thread.join();
|
m_auto_refresh_thread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue