core: `SubstreamChunksIter` must always advance on `next`!

This commit is contained in:
David Wendt 2023-07-23 21:45:56 -04:00 committed by kmeisthax
parent 782181557b
commit 257aabe4c0
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ impl Iterator for SubstreamChunksIter {
fn next(&mut self) -> Option<Slice> {
if let Some((start, end)) = self.substream.chunks.read().unwrap().get(self.next_buf) {
self.next_buf += 1;
return Some(Slice {
buf: self.substream.buf.clone(),
start: *start,