diff options
author | ston1th <ston1th@users.noreply.github.com> | 2019-06-09 10:51:18 +0200 |
---|---|---|
committer | ston1th <ston1th@users.noreply.github.com> | 2019-06-09 10:51:18 +0200 |
commit | f2f207d63578735c875472cf56ad4dee787ba110 (patch) | |
tree | 0618e825b8ad4cb89f04195f46086b756bf0eb18 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #5583 (diff) | |
download | monero-f2f207d63578735c875472cf56ad4dee787ba110.tar.xz |
miner: fix double free of thread attributes
issue: #5568
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 5ca5f3fe7..28c53d6e3 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -905,16 +905,13 @@ namespace cryptonote return true; } - boost::thread::attributes attrs; - attrs.set_stack_size(THREAD_STACK_SIZE); - cryptonote::miner &miner= m_core.get_miner(); if (miner.is_mining()) { res.status = "Already mining"; return true; } - if(!miner.start(info.address, static_cast<size_t>(req.threads_count), attrs, req.do_background_mining, req.ignore_battery)) + if(!miner.start(info.address, static_cast<size_t>(req.threads_count), req.do_background_mining, req.ignore_battery)) { res.status = "Failed, mining not started"; LOG_PRINT_L0(res.status); |