Browse Source

Avoid miner crashes.

cl-refactor
Gav Wood 10 years ago
parent
commit
9a01dd57fd
  1. 3
      libethcore/Ethash.cpp

3
libethcore/Ethash.cpp

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

Loading…
Cancel
Save