aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-06-11 18:17:11 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-06-11 18:17:11 -0500
commitfd0cf689ddb62c07fa9d86ca6e070860c51669cc (patch)
tree362c57cb3ce3e09ef4565e768e888bbc2e0313dd /src/rpc/core_rpc_server.cpp
parentMerge pull request #5618 (diff)
parentminer: fix double free of thread attributes (diff)
downloadmonero-fd0cf689ddb62c07fa9d86ca6e070860c51669cc.tar.xz
Merge pull request #5619
f2f207d miner: fix double free of thread attributes (ston1th)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp5
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);