From 21a1e0252f3dd08ff7d067c9e7f2b9454c615d27 Mon Sep 17 00:00:00 2001 From: Dion Ahmetaj Date: Thu, 2 Feb 2017 12:24:42 -0500 Subject: Set background mining started bool to false on bg thread start. If mining::stop then mining::start, idle logic is re-run instead of starting immediately (if it was running before stop). --- src/cryptonote_basic/miner.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 2b70df643..d424dd5e7 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -526,6 +526,7 @@ namespace cryptonote uint64_t prev_total_time, current_total_time; uint64_t prev_idle_time, current_idle_time; uint64_t previous_process_time = 0, current_process_time = 0; + m_is_background_mining_enabled = false; if(!get_system_times(prev_total_time, prev_idle_time)) { -- cgit v1.2.3