mirror of
https://github.com/ProjectSWGCore/client-holocore.git
synced 2026-01-16 22:04:23 -05:00
Minor change to look-ahead in protocol
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user