diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-10 13:11:22 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-10 13:11:22 -0700 |
commit | e709e4d36516f4459cc08c46ae6eea1e12feb70b (patch) | |
tree | 5bed3ec4bff9246270b79371d5b83fafc3720e12 /host/lib/usrp/dboard/db_tvrx2.cpp | |
parent | 3724b821f1db99f5eaba3b46d76310549074eaf6 (diff) | |
download | uhd-e709e4d36516f4459cc08c46ae6eea1e12feb70b.tar.gz uhd-e709e4d36516f4459cc08c46ae6eea1e12feb70b.tar.bz2 uhd-e709e4d36516f4459cc08c46ae6eea1e12feb70b.zip |
uhd: added safe call on a few dboard related deconstructors
Diffstat (limited to 'host/lib/usrp/dboard/db_tvrx2.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_tvrx2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_tvrx2.cpp b/host/lib/usrp/dboard/db_tvrx2.cpp index fe07a70a5..39ff90d79 100644 --- a/host/lib/usrp/dboard/db_tvrx2.cpp +++ b/host/lib/usrp/dboard/db_tvrx2.cpp @@ -53,6 +53,7 @@ #include <uhd/utils/static.hpp> #include <uhd/utils/log.hpp> #include <uhd/utils/msg.hpp> +#include <uhd/utils/safe_call.hpp> #include <uhd/utils/assert_has.hpp> #include <uhd/utils/algorithm.hpp> #include <uhd/types/ranges.hpp> @@ -1039,7 +1040,7 @@ tvrx2::~tvrx2(void){ UHD_LOGV(often) << boost::format( "TVRX2 (%s): Called Destructor" ) % (get_subdev_name()) << std::endl; - if (_enabled) set_disabled(); + UHD_SAFE_CALL(if (_enabled) set_disabled();) } void tvrx2::set_disabled(void){ |