Minor change to look-ahead in protocol

This commit is contained in:
Obique
2017-11-20 00:14:23 -06:00
parent 41a5df892b
commit 8aa5f68a1d

View File

@@ -38,7 +38,8 @@ class HolocoreProtocol {
public byte [] disassemble() {
synchronized (inboundStream) {
inboundStream.mark();
if (inboundStream.remaining() < 4) {
// if (inboundStream.remaining() < 4) {
if (inboundStream.remaining() < 5) {
inboundStream.rewind();
return EMPTY_PACKET;
}