auto-sync

This commit is contained in:
rusEfi 2016-01-22 18:02:28 -05:00
parent 52d6c9d07b
commit 6c5616afbb
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ public class BinaryProtocol {
logger.trace("Got packet size " + packetSize);
if (packetSize < 0)
return null;
if (!allowLongResponse && packetSize > BLOCKING_FACTOR + 10)
if (!allowLongResponse && packetSize > Math.max(BLOCKING_FACTOR, OUTPUT_CHANNELS_SIZE) + 10)
return null;
isTimeout = incomingData.waitForBytes(packetSize + 4, start, msg + " body");