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());
|
.getName());
|
||||||
if (((MemoryAttribute) attribute).getChannelBuffer() != null) {
|
if (((MemoryAttribute) attribute).getChannelBuffer() != null) {
|
||||||
diskAttribute.addContent(((MemoryAttribute) attribute)
|
diskAttribute.addContent(((MemoryAttribute) attribute)
|
||||||
.getChannelBuffer(), last);
|
.getChannelBuffer(), false);
|
||||||
}
|
}
|
||||||
attribute = diskAttribute;
|
attribute = diskAttribute;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user