aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-09-10 09:53:12 -0700
committerMartin Braun <martin.braun@ettus.com>2015-09-10 09:53:12 -0700
commite664582d243f47360348b478ee2e7ce98b7c2fe7 (patch)
tree6e8c8cd9c4ce96a614dc04a4a9c41ee251046899 /host
parenta1492414290c1693edbedbea45e7433d0b4903d1 (diff)
downloaduhd-e664582d243f47360348b478ee2e7ce98b7c2fe7.tar.gz
uhd-e664582d243f47360348b478ee2e7ce98b7c2fe7.tar.bz2
uhd-e664582d243f47360348b478ee2e7ce98b7c2fe7.zip
transport: Fix bug where stop commands could erroneously throw
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index 66852f705..3fcf9c1e6 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -203,7 +203,9 @@ public:
//! Overload call to issue stream commands
void issue_stream_cmd(const stream_cmd_t &stream_cmd)
{
- if (stream_cmd.stream_now and _props.size() > 1) {
+ if (stream_cmd.stream_now
+ and stream_cmd.stream_mode != stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS
+ and _props.size() > 1) {
throw uhd::runtime_error("Attempting to do multi-channel receive with stream_now == true will result in misaligned channels. Aborting.");
}