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:
parent
877383de3a
commit
a410cb243b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user