|
@ -340,6 +340,7 @@ void Ethash::GPUMiner::workLoop() |
|
|
if (shouldStop()) |
|
|
if (shouldStop()) |
|
|
{ |
|
|
{ |
|
|
delete m_miner; |
|
|
delete m_miner; |
|
|
|
|
|
m_miner = nullptr; |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
cnote << "Awaiting DAG"; |
|
|
cnote << "Awaiting DAG"; |
|
@ -354,6 +355,8 @@ void Ethash::GPUMiner::workLoop() |
|
|
} |
|
|
} |
|
|
catch (cl::Error const& _e) |
|
|
catch (cl::Error const& _e) |
|
|
{ |
|
|
{ |
|
|
|
|
|
delete m_miner; |
|
|
|
|
|
m_miner = nullptr; |
|
|
cwarn << "Error GPU mining: " << _e.what() << "(" << _e.err() << ")"; |
|
|
cwarn << "Error GPU mining: " << _e.what() << "(" << _e.err() << ")"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|