From a28feaa487290195201ac6767b51a61b05066d40 Mon Sep 17 00:00:00 2001 From: eb Date: Wed, 24 Sep 2008 00:20:41 +0000 Subject: return -1 (DONE flag) if source or sink sees an error git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9650 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-usrp2/src/usrp2_source_32fc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gr-usrp2/src/usrp2_source_32fc.cc') diff --git a/gr-usrp2/src/usrp2_source_32fc.cc b/gr-usrp2/src/usrp2_source_32fc.cc index 0d2418518..5726f2279 100644 --- a/gr-usrp2/src/usrp2_source_32fc.cc +++ b/gr-usrp2/src/usrp2_source_32fc.cc @@ -59,8 +59,10 @@ usrp2_source_32fc::work(int noutput_items, rx_32fc_handler::sptr handler = rx_32fc_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(); } -- cgit