From 16a80db196bdbd30f80797a8a314b61b1eabafbf Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 22 Aug 2014 12:21:36 +0200 Subject: [PATCH] Avoid potential conditions where mining is not restarted. --- libethereum/Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index d9798e88e..2e9b035bd 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -438,12 +438,12 @@ void Client::work(bool _justQueue) else m_postMine.commitToMine(m_bc); } + m_restartMining = false; } if (m_doMine) { cwork << "MINE"; - m_restartMining = false; // Mine for a while. MineInfo mineInfo = m_postMine.mine(100, m_turboMining);