aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 38709bbb3..200d99aee 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -343,10 +343,12 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s
//locate the matching handle in the device list
BOOST_FOREACH(usb_device_handle::sptr dev_handle, device_list) {
- if (dev_handle->get_serial() == device_addr["serial"]){
- handle = dev_handle;
- break;
- }
+ try {
+ if (dev_handle->get_serial() == device_addr["serial"]){
+ handle = dev_handle;
+ break;
+ }
+ } catch (const uhd::exception &e) { continue; }
}
UHD_ASSERT_THROW(handle.get() != NULL); //better be found