Fix in addContent when switching from MemoryAttribute if it is done when last buffer added, in order to not close immediately the underlying file before adding the last buffer.

This commit is contained in:
Frédéric Brégier 2012-04-30 12:32:24 +03:00
parent 877383de3a
commit a410cb243b

View File

@ -65,7 +65,7 @@ public class MixedAttribute implements Attribute {
.getName());
if (((MemoryAttribute) attribute).getChannelBuffer() != null) {
diskAttribute.addContent(((MemoryAttribute) attribute)
.getChannelBuffer(), last);
.getChannelBuffer(), false);
}
attribute = diskAttribute;
}