aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-16 22:45:42 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-16 22:45:42 +0200
commite98cbfbdfeda99d6868e528479a7be92a02b476d (patch)
treeb03d604546d472c3b0ac98e97b66823bc8b8ea56 /src/cryptonote_basic
parentMerge pull request #5443 (diff)
parentIncrement m_threads_active when mining thread starts (diff)
downloadmonero-e98cbfbdfeda99d6868e528479a7be92a02b476d.tar.xz
Merge pull request #5444
6643b047 Increment m_threads_active when mining thread starts (Doyle)
Diffstat (limited to 'src/cryptonote_basic')
-rw-r--r--src/cryptonote_basic/miner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index e6c6bddb6..173679e21 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -528,6 +528,7 @@ namespace cryptonote
uint32_t local_template_ver = 0;
block b;
slow_hash_allocate_state();
+ ++m_threads_active;
while(!m_stop)
{
if(m_pausers_count)//anti split workaround