From 1afac89b4af7a13375e4dca866418e9ae368c42f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 11 Jan 2012 09:08:40 -0800 Subject: usrp: db manager tweak for contructor throwing --- host/lib/usrp/dboard_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 28eac14a5..340c1d3f9 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -208,8 +208,8 @@ dboard_manager_impl::dboard_manager_impl( "The daughterboard cannot operate until this error is resolved.\n" ) << e.what() << std::endl; //clean up the stuff added by the call above - subtree->remove("rx_frontends"); - subtree->remove("tx_frontends"); + if (subtree->exists("rx_frontends")) subtree->remove("rx_frontends"); + if (subtree->exists("tx_frontends")) subtree->remove("tx_frontends"); this->init(dboard_id_t::none(), dboard_id_t::none(), subtree); } } -- cgit v1.2.3