Null-out the InputStream of the Buffer object when writing. Fixes #17

This commit is contained in:
Zlatin Balevsky
2021-04-24 15:23:04 +01:00
parent 025445fc65
commit c58ccfa204

View File

@@ -356,6 +356,7 @@ class PersistentMailCache {
GzipFileBuffer gb = new GzipFileBuffer(f);
out = gb.getOutputStream();
DataHelper.copy(in, out);
rb.readComplete(true);
return true;
} catch (IOException ioe) {
_log.error("Error writing: " + f + ": " + ioe);