aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2020-12-18 13:38:16 -0800
committermichael-west <michael.west@ettus.com>2020-12-21 09:36:09 -0800
commit0ffc594196a9f5b9fac3858e17eb858bbc2bd444 (patch)
tree691bf01993fb51a737896132295d5c7258f65b6e /host/lib/include
parent3a73923309f66b05f05528534ab82e02150482ca (diff)
downloaduhd-0ffc594196a9f5b9fac3858e17eb858bbc2bd444.tar.gz
uhd-0ffc594196a9f5b9fac3858e17eb858bbc2bd444.tar.bz2
uhd-0ffc594196a9f5b9fac3858e17eb858bbc2bd444.zip
fixup! RFNoC: Handle receive of 0 samples
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/transport/rx_streamer_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
index 087a13de7..f664eb68f 100644
--- a/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
+++ b/host/lib/include/uhdlib/transport/rx_streamer_impl.hpp
@@ -132,12 +132,12 @@ public:
const double timeout,
const bool one_packet)
{
- if (nsamps_per_buff == 0) {
- metadata.reset();
+ if (_error_metadata_cache.check(metadata)) {
return 0;
}
- if (_error_metadata_cache.check(metadata)) {
+ if (nsamps_per_buff == 0) {
+ metadata.reset();
return 0;
}