core: `SubstreamChunksIter` must always advance on `next`!
This commit is contained in:
parent
782181557b
commit
257aabe4c0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue