aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 14:21:34 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-03-12 14:21:34 +0000
commit41ea91a97ae17aa42695d3768f2572b39f4980ba (patch)
tree3c85556954c42b7eb4d9230e2daf4e89a1653aa4 /src/simplewallet/simplewallet.cpp
parentMerge pull request #712 (diff)
downloadmonero-41ea91a97ae17aa42695d3768f2572b39f4980ba.tar.xz
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.
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 3e5cdfcb6..5f97d633a 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -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();
}