summaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-01-11 09:08:40 -0800
committerJosh Blum <josh@joshknows.com>2012-01-11 09:08:40 -0800
commit1afac89b4af7a13375e4dca866418e9ae368c42f (patch)
treefc6593a10b73466d5bbdff41f50c1e031f2567f6 /host
parent3ebc4ed5456583abdf1534b4261f72989490237d (diff)
downloaduhd-1afac89b4af7a13375e4dca866418e9ae368c42f.tar.gz
uhd-1afac89b4af7a13375e4dca866418e9ae368c42f.tar.bz2
uhd-1afac89b4af7a13375e4dca866418e9ae368c42f.zip
usrp: db manager tweak for contructor throwing
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/dboard_manager.cpp4
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);
}
}