Fixed bug where required code was run in an assertion and not running on android

This commit is contained in:
Collin Smith 2019-04-01 05:46:09 -07:00
parent 3c71976972
commit c7be4a6b8b

View File

@ -715,7 +715,8 @@ public class D2S {
assert socket.location == Location.SOCKET;
}
}
assert BufferUtils.lookahead(buffer, SECTION_FOOTER);
boolean lookahead = BufferUtils.lookahead(buffer, SECTION_FOOTER);
assert lookahead;
if (!consumeFooter) buffer.reset();
return this;
}