mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-30 19:04:51 +00:00
Catch exception
This commit is contained in:
parent
21fbe61243
commit
6f5f8e8948
@ -422,7 +422,14 @@ void ControlThread::init()
|
|||||||
{
|
{
|
||||||
// Instantiates a control queue, a GNSS flowgraph, and a control message factory
|
// Instantiates a control queue, a GNSS flowgraph, and a control message factory
|
||||||
control_queue_ = gr::msg_queue::make(0);
|
control_queue_ = gr::msg_queue::make(0);
|
||||||
|
try
|
||||||
|
{
|
||||||
flowgraph_ = std::make_shared<GNSSFlowgraph>(configuration_, control_queue_);
|
flowgraph_ = std::make_shared<GNSSFlowgraph>(configuration_, control_queue_);
|
||||||
|
}
|
||||||
|
catch (const boost::bad_lexical_cast& e )
|
||||||
|
{
|
||||||
|
std::cout << "Caught bad lexical cast with error " << e.what() << std::endl;
|
||||||
|
}
|
||||||
control_message_factory_ = std::make_shared<ControlMessageFactory>();
|
control_message_factory_ = std::make_shared<ControlMessageFactory>();
|
||||||
stop_ = false;
|
stop_ = false;
|
||||||
processed_control_messages_ = 0;
|
processed_control_messages_ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user