Fix same issue than branch Master issue #290 for branch 3

This commit is contained in:
Frédéric Brégier 2012-05-02 10:18:24 +03:00
parent 5ef153f4c1
commit 1313300264

View File

@ -200,8 +200,8 @@ public abstract class AbstractMemoryHttpData extends AbstractHttpData {
int written = 0;
while (written < length) {
written += fileChannel.write(byteBuffer);
fileChannel.force(false);
}
fileChannel.force(false);
fileChannel.close();
isRenamed = true;
return written == length;