mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
simplewallet: fixed deadlock if a user hits CTRL+C twice
Co-authored-by: moneromooo-monero <moneromooo-monero@users.noreply.github.com>
This commit is contained in:
parent
77e1ebff26
commit
f2c2c47a4b
1 changed files with 0 additions and 6 deletions
|
@ -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>()*/)
|
||||
|
|
Loading…
Reference in a new issue