Commit e01e83b0 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

AcqThread: properly catch exceptions in checkLostPackets

parent bcc02910
......@@ -155,7 +155,13 @@ void Camera::AcqThread::threadFunction()
while ((m_state != StopReq) && m_frame_queue.empty()) {
if (!m_cond.wait(m_cam->m_new_frame_timeout)) {
AutoMutexUnlock u(l);
m_cam->checkLostPackets();
try {
m_cam->checkLostPackets();
} catch (Exception& e) {
string name = ("Camera::AcqThread: "
"checkLostPackets");
m_cam->reportException(e, name);
}
}
}
if (!m_frame_queue.empty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment