aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2018-10-10 19:39:51 +0000
committerxiphon <xiphon@protonmail.com>2018-10-10 19:39:51 +0000
commitf2c2c47a4ba40a00d5c6b9d7ea3df4c6cb654c83 (patch)
tree2cb8ad49fb850521c1853bd1b196c9a1d2cb0a1f /src/simplewallet/simplewallet.cpp
parentMerge pull request #4543 (diff)
downloadmonero-f2c2c47a4ba40a00d5c6b9d7ea3df4c6cb654c83.tar.xz
simplewallet: fixed deadlock if a user hits CTRL+C twice
Co-authored-by: moneromooo-monero <moneromooo-monero@users.noreply.github.com>
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 4ec7e3eb4..625ab52bc 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -7050,12 +7050,6 @@ bool simple_wallet::run()
void simple_wallet::stop()
{
m_cmd_binder.stop_handling();
-
- m_idle_run.store(false, std::memory_order_relaxed);
- m_wallet->stop();
- // make the background refresh thread quit
- boost::unique_lock<boost::mutex> lock(m_idle_mutex);
- m_idle_cond.notify_one();
}
//----------------------------------------------------------------------------------------------------
bool simple_wallet::account(const std::vector<std::string> &args/* = std::vector<std::string>()*/)