summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}