calculate message size even if the minimumMessageSize == 0

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@620500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-02-11 14:59:56 +00:00
parent 5460b7bb47
commit f94406aae6
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ public abstract class Message extends BaseCommand implements MarshallAware, Mess
public int getSize() {
int minimumMessageSize = getMinimumMessageSize();
if (size < minimumMessageSize) {
if (size < minimumMessageSize || size == 0) {
size = minimumMessageSize;
if (marshalledProperties != null) {
size += marshalledProperties.getLength();