diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/usrp1/usrp1_impl.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp index f27fc0768..7a8f6497c 100644 --- a/host/lib/usrp/usrp1/usrp1_impl.cpp +++ b/host/lib/usrp/usrp1/usrp1_impl.cpp @@ -385,10 +385,13 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){ } -usrp1_impl::~usrp1_impl(void){UHD_SAFE_CALL( - this->enable_rx(false); - this->enable_tx(false); -)} +usrp1_impl::~usrp1_impl(void){ + _io_impl.reset(); //stops vandal before other stuff gets deconstructed + UHD_SAFE_CALL( + this->enable_rx(false); + this->enable_tx(false); + ) +} /*! * Capabilities Register |