diff options
author | xiphon <xiphon@protonmail.com> | 2018-10-10 19:39:51 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2018-10-10 19:39:51 +0000 |
commit | f2c2c47a4ba40a00d5c6b9d7ea3df4c6cb654c83 (patch) | |
tree | 2cb8ad49fb850521c1853bd1b196c9a1d2cb0a1f /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #4543 (diff) | |
download | monero-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.cpp | 6 |
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>()*/) |