From f2c2c47a4ba40a00d5c6b9d7ea3df4c6cb654c83 Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 10 Oct 2018 19:39:51 +0000 Subject: [PATCH] simplewallet: fixed deadlock if a user hits CTRL+C twice Co-authored-by: moneromooo-monero --- src/simplewallet/simplewallet.cpp | 6 ------ 1 file changed, 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 lock(m_idle_mutex); - m_idle_cond.notify_one(); } //---------------------------------------------------------------------------------------------------- bool simple_wallet::account(const std::vector &args/* = std::vector()*/)