Initializing stopped before starting wallet thread.

This commit is contained in:
clemahieu 2018-01-06 12:30:58 -06:00
commit 8c1114ec8b
2 changed files with 3 additions and 3 deletions

View file

@ -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)
{

View file

@ -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;
};