aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_zero_copy.cpp
diff options
context:
space:
mode:
authorDaulPavid <paul.david@ettus.com>2016-02-09 14:17:43 -0800
committerDaulPavid <paul.david@ettus.com>2016-02-12 13:32:38 -0800
commit35c6d742977fa03e840d70951c0a136720d8a2d0 (patch)
tree1ed57b259eeb883ec135ef96c833a52ef6b3d7f4 /host/lib/transport/libusb1_zero_copy.cpp
parent83c1493e031ddd0b5b80560f4345aaa089446f94 (diff)
downloaduhd-35c6d742977fa03e840d70951c0a136720d8a2d0.tar.gz
uhd-35c6d742977fa03e840d70951c0a136720d8a2d0.tar.bz2
uhd-35c6d742977fa03e840d70951c0a136720d8a2d0.zip
Corrected the UHD behavior in the event of a USB disconnect
Diffstat (limited to 'host/lib/transport/libusb1_zero_copy.cpp')
-rw-r--r--host/lib/transport/libusb1_zero_copy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/transport/libusb1_zero_copy.cpp b/host/lib/transport/libusb1_zero_copy.cpp
index b67b36d0a..53e345009 100644
--- a/host/lib/transport/libusb1_zero_copy.cpp
+++ b/host/lib/transport/libusb1_zero_copy.cpp
@@ -149,8 +149,8 @@ public:
if (wait_for_completion(timeout))
{
if (result.status != LIBUSB_TRANSFER_COMPLETED)
- throw uhd::runtime_error(str(boost::format("usb %s transfer status: %d")
- % _name % libusb_error_name(result.status)));
+ throw uhd::io_error(str(boost::format("usb %s transfer status: %d")
+ % _name % libusb_error_name(result.status)));
result.completed = 0;
return make(reinterpret_cast<buffer_type *>(this), _lut->buffer, (_is_recv)? result.actual_length : _frame_size);
}