From 8c1114ec8b120cfa99de50a7358414ddda0eb99f Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sat, 6 Jan 2018 12:30:58 -0600 Subject: [PATCH] Initializing stopped before starting wallet thread. --- rai/node/wallet.cpp | 4 ++-- rai/node/wallet.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rai/node/wallet.cpp b/rai/node/wallet.cpp index e7c15992..9b001dc8 100644 --- a/rai/node/wallet.cpp +++ b/rai/node/wallet.cpp @@ -1201,8 +1201,8 @@ void rai::wallet::work_generate (rai::account const & account_a, rai::block_hash rai::wallets::wallets (bool & error_a, rai::node & node_a) : observer ([](bool) {}), node (node_a), -thread ([this] () { do_wallet_actions (); }), -stopped (false) +stopped (false), +thread ([this] () { do_wallet_actions (); }) { if (!error_a) { diff --git a/rai/node/wallet.hpp b/rai/node/wallet.hpp index 40ec70ba..67e5b895 100644 --- a/rai/node/wallet.hpp +++ b/rai/node/wallet.hpp @@ -175,8 +175,8 @@ public: rai::kdf kdf; MDB_dbi handle; rai::node & node; - std::thread thread; bool stopped; + std::thread thread; static rai::uint128_t const generate_priority; static rai::uint128_t const high_priority; };