Return if an unknown exception has been cought in Channel

This commit is contained in:
Alexey Rybalchenko
2015-11-03 09:45:00 +01:00
committed by Mohammad Al-Turany
parent d52d7d4ebc
commit ada23500be
3 changed files with 18 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ bool FairMQStateMachine::ChangeState(int event)
catch (boost::exception& e)
{
LOG(ERROR) << boost::diagnostic_information(e);
exit(EXIT_FAILURE);
}
return false;
}
@@ -136,6 +137,7 @@ void FairMQStateMachine::WaitForEndOfState(int event)
catch (boost::exception& e)
{
LOG(ERROR) << boost::diagnostic_information(e);
exit(EXIT_FAILURE);
}
break;
}
@@ -184,7 +186,7 @@ bool FairMQStateMachine::WaitForEndOfStateForMs(int event, int durationInMs)
return false;
}
}
catch (boost::thread_interrupted &e)
catch (boost::thread_interrupted& e)
{
LOG(ERROR) << boost::diagnostic_information(e);
}