summaryrefslogtreecommitdiff
path: root/gr-usrp2/src/usrp2_source_16sc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-usrp2/src/usrp2_source_16sc.cc')
-rw-r--r--gr-usrp2/src/usrp2_source_16sc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-usrp2/src/usrp2_source_16sc.cc b/gr-usrp2/src/usrp2_source_16sc.cc
index b12a6eece..1ff32a56e 100644
--- a/gr-usrp2/src/usrp2_source_16sc.cc
+++ b/gr-usrp2/src/usrp2_source_16sc.cc
@@ -59,8 +59,10 @@ usrp2_source_16sc::work(int noutput_items,
rx_16sc_handler::sptr handler = rx_16sc_handler::make(noutput_items, USRP2_MIN_RX_SAMPLES, out);
bool ok = d_u2->rx_samples(0, handler.get());
- if (!ok)
+ if (!ok){
std::cerr << "usrp2::rx_samples() failed" << std::endl;
+ return -1; // say we're done
+ }
return handler->nsamples();
}