Browse Source

log worker exceptions

cl-refactor
subtly 10 years ago
parent
commit
7cb578cc1f
  1. 5
      libdevcore/Worker.cpp

5
libdevcore/Worker.cpp

@ -56,7 +56,10 @@ void Worker::startWorking()
workLoop();
doneWorking();
}
catch (...) {}
catch (std::exception const& _e)
{
clog(WarnChannel) << "Exception thrown in Worker thread: " _e.what();
}
// ex = WorkerState::Stopping;
// m_state.compare_exchange_strong(ex, WorkerState::Stopped);

Loading…
Cancel
Save