Fixed bug where D2S was stopping reading items too early (a couple item headers contained the section footer)

This commit is contained in:
Collin Smith 2019-03-19 14:45:02 -07:00
parent 722a179e94
commit 18e10a70dd

View File

@ -681,10 +681,11 @@ public class D2S {
assert socket.location == Location.SOCKET; assert socket.location == Location.SOCKET;
} }
if (BufferUtils.lookahead(buffer, SECTION_FOOTER)) { //if (BufferUtils.lookahead(buffer, SECTION_FOOTER)) {
break; // break;
} //}
} }
assert BufferUtils.lookahead(buffer, SECTION_FOOTER);
//assert !buffer.hasRemaining(); //assert !buffer.hasRemaining();
return this; return this;
} }