diff --git a/components/rgbd-sources/src/net.cpp b/components/rgbd-sources/src/net.cpp index 8fcb95a17af1ad2453356514aadf5b8199e66e63..86fa08a2b9adbddce2529e992bccc0f5307cd012 100644 --- a/components/rgbd-sources/src/net.cpp +++ b/components/rgbd-sources/src/net.cpp @@ -220,12 +220,13 @@ void NetSource::_recvChunk(int64_t ts, int chunk, bool delta, const vector<unsig // Silent ignore? } } - - ++frame.chunk_count; if (timestamp_ > 0 && frame.timestamp <= timestamp_) { LOG(ERROR) << "BAD DUPLICATE FRAME - " << timestamp_ - frame.timestamp; + return; } + + ++frame.chunk_count; if (frame.chunk_count > kChunkCount) LOG(FATAL) << "TOO MANY CHUNKS";