From 32368918b93f2322aa28a6c1bf874494df63e3bd Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Fri, 5 Dec 2014 17:31:18 +0000 Subject: [PATCH] HCOLL-230 -corrected assert --- src/main/java/net/openhft/chronicle/map/TcpReplicator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/map/TcpReplicator.java b/src/main/java/net/openhft/chronicle/map/TcpReplicator.java index ffde1a59f..e380aca09 100644 --- a/src/main/java/net/openhft/chronicle/map/TcpReplicator.java +++ b/src/main/java/net/openhft/chronicle/map/TcpReplicator.java @@ -1181,9 +1181,8 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable // state is used for both heartbeat and stateless state = out.readByte(); sizeInBytes = out.readInt(); - //System.out.println("received size=" + sizeInBytes); - // System.out.println("......sizeInBytes=>" + sizeInBytes); - assert sizeInBytes > 0; + + assert sizeInBytes >= 0; // if the buffer is too small to read this payload we will have to grow the // size of the buffer