diff options
author | Josh Blum <josh@joshknows.com> | 2012-01-11 09:08:40 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-01-11 09:08:40 -0800 |
commit | 1afac89b4af7a13375e4dca866418e9ae368c42f (patch) | |
tree | fc6593a10b73466d5bbdff41f50c1e031f2567f6 /host/lib | |
parent | 3ebc4ed5456583abdf1534b4261f72989490237d (diff) | |
download | uhd-1afac89b4af7a13375e4dca866418e9ae368c42f.tar.gz uhd-1afac89b4af7a13375e4dca866418e9ae368c42f.tar.bz2 uhd-1afac89b4af7a13375e4dca866418e9ae368c42f.zip |
usrp: db manager tweak for contructor throwing
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |